func TestWorkItemLink_Equal(t *testing.T) {
	t.Parallel()
	resource.Require(t, resource.UnitTest)

	a := link.WorkItemLink{
		ID:         uuid.FromStringOrNil("0e671e36-871b-43a6-9166-0c4bd573e231"),
		SourceID:   1,
		TargetID:   2,
		LinkTypeID: uuid.FromStringOrNil("966e982c-615c-4879-961f-56e912cbc4f2"),
	}

	// Test equality
	b := a
	require.True(t, a.Equal(b))

	// Test types
	c := convert.DummyEqualer{}
	require.False(t, a.Equal(c))

	// Test lifecycle
	b = a
	b.Lifecycle = gormsupport.Lifecycle{CreatedAt: time.Now().Add(time.Duration(1000))}
	require.False(t, a.Equal(b))

	// Test ID
	b = a
	b.ID = uuid.FromStringOrNil("10616dae-0a28-4de5-9d79-c831dbcfd039")
	require.False(t, a.Equal(b))

	// Test Version
	b = a
	b.Version += 1
	require.False(t, a.Equal(b))

	// Test SourceID
	b = a
	b.SourceID = 1292387473
	require.False(t, a.Equal(b))

	// Test TargetID
	b = a
	b.TargetID = 93092303290
	require.False(t, a.Equal(b))

	// Test LinkTypeID
	b = a
	b.LinkTypeID = uuid.FromStringOrNil("10a41146-3868-47cd-84ae-f96ea4c9d797")
	require.False(t, a.Equal(b))
}
// TestWorkItemLink_Equal Tests equality of two work item links
TestWorkItemLink_Equal Tests equality of two work item links
// TestWorkItemLink_Equal Tests equality of two work item links
func TestWorkItemLink_Equal(t *testing.T) {
	t.Parallel()
	resource.Require(t, resource.UnitTest)
	a := link.WorkItemLink{
		ID:         uuid.FromStringOrNil("0e671e36-871b-43a6-9166-0c4bd573e231"),
		SourceID:   1,
		TargetID:   2,
		LinkTypeID: uuid.FromStringOrNil("966e982c-615c-4879-961f-56e912cbc4f2"),
	}
	b := a
	require.True(t, a.Equal(b))
	c := convert.DummyEqualer{}
	require.False(t, a.Equal(c))
	b = a
	b.Lifecycle = gormsupport.Lifecycle{CreatedAt: time.Now().Add(time.Duration(1000))}
	require.False(t, a.Equal(b))
	b = a
	b.ID = uuid.FromStringOrNil("10616dae-0a28-4de5-9d79-c831dbcfd039")
	require.False(t, a.Equal(b))
	b = a
	b.Version += 1
	require.False(t, a.Equal(b))
	b = a
	b.SourceID = 1292387473
	require.False(t, a.Equal(b))
	b = a
	b.TargetID = 93092303290
	require.False(t, a.Equal(b))
	b = a
	b.LinkTypeID = uuid.FromStringOrNil("10a41146-3868-47cd-84ae-f96ea4c9d797")
	require.False(t, a.Equal(b))
}
func TestWorkItemLink_Equal ( t * testing . T ) { t . Parallel ( ) resource . Require ( t , resource . UnitTest ) a := link . WorkItemLink { ID : uuid . FromStringOrNil ( " " ) , SourceID : 1 , TargetID : 2 , LinkTypeID : uuid . FromStringOrNil ( " " ) , } b := a require . True ( t , a . Equal ( b ) ) c := convert . DummyEqualer { } require . False ( t , a . Equal ( c ) ) b = a b . Lifecycle = gormsupport . Lifecycle { CreatedAt : time . Now ( ) . Add ( time . Duration ( 1000 ) ) } require . False ( t , a . Equal ( b ) ) b = a b . ID = uuid . FromStringOrNil ( " " ) require . False ( t , a . Equal ( b ) ) b = a b . Version += 1 require . False ( t , a . Equal ( b ) ) b = a b . SourceID = 1292387473 require . False ( t , a . Equal ( b ) ) b = a b . TargetID = 93092303290 require . False ( t , a . Equal ( b ) ) b = a b . LinkTypeID = uuid . FromStringOrNil ( " " ) require . False ( t , a . Equal ( b ) ) }
TestWorkItemLink_Equal Tests equality of two work item links
TestWorkItemLink_Equal Tests equality of two work item links
// Test equality // Test types // Test lifecycle // Test ID // Test Version // Test SourceID // Test TargetID // Test LinkTypeID