MCPcopy
hub / github.com/duke-git/lancet / NewAssert

Function NewAssert

internal/assert.go:29–31  ·  view source on GitHub ↗

NewAssert return instance of Assert

(t *testing.T, caseName string)

Source from the content-addressed store, hash-verified

27
28// NewAssert return instance of Assert
29func NewAssert(t *testing.T, caseName string) *Assert {
30 return &Assert{T: t, CaseName: caseName}
31}
32
33// Equal check if expected is equal with actual
34func (a *Assert) Equal(expected, actual any) {

Callers 15

TestRandStringFunction · 0.92
TestRandUpperFunction · 0.92
TestRandLowerFunction · 0.92
TestRandNumeralFunction · 0.92
TestRandNumeralOrLetterFunction · 0.92
TestRandIntFunction · 0.92
TestRandBytesFunction · 0.92
TestUUIdV4Function · 0.92
TestRandUniqueIntSliceFunction · 0.92
TestRandSymbolCharFunction · 0.92
TestRandFloatFunction · 0.92
TestRandFloatsFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestRandStringFunction · 0.74
TestRandUpperFunction · 0.74
TestRandLowerFunction · 0.74
TestRandNumeralFunction · 0.74
TestRandNumeralOrLetterFunction · 0.74
TestRandIntFunction · 0.74
TestRandBytesFunction · 0.74
TestUUIdV4Function · 0.74
TestRandUniqueIntSliceFunction · 0.74
TestRandSymbolCharFunction · 0.74
TestRandFloatFunction · 0.74
TestRandFloatsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…