MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / shouldBeEqual

Function shouldBeEqual

engine/generic_value_test.go:140–146  ·  view source on GitHub ↗
(t *testing.T, valueOne ValueInterface, valueTwo ValueInterface)

Source from the content-addressed store, hash-verified

138}
139
140func shouldBeEqual(t *testing.T, valueOne ValueInterface, valueTwo ValueInterface) {
141 const ErrorMsgShouldBeEqual = "%s(type: %v) is not equal %s(type: %v), but is should be"
142
143 if !valueOne.IsEqual(valueTwo) {
144 t.Errorf(ErrorMsgShouldBeEqual, valueOne.ToString(), valueOne.GetType(), valueTwo.ToString(), valueTwo.GetType())
145 }
146}
147func shouldNotBeEqual(t *testing.T, valueOne ValueInterface, valueTwo ValueInterface) {
148 const ErrorMsgShouldNotBeEqual = "%s(type: %v) is equal %s(type: %v), but is shouldn't be"
149

Callers 1

TestEqualsFunction · 0.85

Calls 3

IsEqualMethod · 0.65
ToStringMethod · 0.65
GetTypeMethod · 0.65

Tested by

no test coverage detected