/*
Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/

package common

import "testing"

func TestNoop(t *testing.T) {
	// This is just to make this package included in the code-coverage statistics
}

/*
Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/

package common

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestIsNotSame(t *testing.T) {
	id := PKIidType("1")
	assert.True(t, id.IsNotSameFilter(PKIidType("2")))
	assert.False(t, id.IsNotSameFilter(PKIidType("1")))
	assert.False(t, id.IsNotSameFilter(id))
}

Bring gossip/common code coverage back up
[FAB-7555] Bring gossip/common code coverage back up

The code coverage % was high but dropped to 50%.
This change set brings it up to 87%.

Change-Id: I01af079a1f244b664a88ff1238114838368100a4
Signed-off-by: yacovm <632344b5da9bd743456189af4db4b56472defb8c@il.ibm.com>
