MCPcopy Index your code
hub / github.com/expr-lang/expr / addFormatterTest

Function addFormatterTest

internal/spew/format_test.go:90–93  ·  view source on GitHub ↗

addFormatterTest is a helper method to append the passed input and desired result to formatterTests.

(format string, in interface{}, wants ...string)

Source from the content-addressed store, hash-verified

88// addFormatterTest is a helper method to append the passed input and desired
89// result to formatterTests.
90func addFormatterTest(format string, in interface{}, wants ...string) {
91 test := formatterTest{format, in, wants}
92 formatterTests = append(formatterTests, test)
93}
94
95func addIntFormatterTests() {
96 // Max int8.

Callers 15

addIntFormatterTestsFunction · 0.85
addUintFormatterTestsFunction · 0.85
addBoolFormatterTestsFunction · 0.85
addFloatFormatterTestsFunction · 0.85
addComplexFormatterTestsFunction · 0.85
addArrayFormatterTestsFunction · 0.85
addSliceFormatterTestsFunction · 0.85
addStringFormatterTestsFunction · 0.85
addMapFormatterTestsFunction · 0.85
addStructFormatterTestsFunction · 0.85
addUintptrFormatterTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…