MCPcopy Create free account
hub / github.com/corestoreio/pkg / ExactlyLength

Function ExactlyLength

util/assert/assertions.go:454–468  ·  view source on GitHub ↗

ExactlyLength asserts that two objects with maximum length of their string fields are equal in value and type. assert.ExactlyLength(t,2, "aa", "aaa") Shorts aaa to aa and checks if aa is equal to aa. This function is needed when writing random strings to the database table with short column length

(t TestingT, maxLength int, ptrExpected, ptrActual interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

FailFunction · 0.85
shortenStringsFunction · 0.85
EqualFunction · 0.85
TypeMethod · 0.45

Tested by

no test coverage detected