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

Function TestDump

internal/spew/dump_test.go:960–992  ·  view source on GitHub ↗

TestDump executes all of the tests described by dumpTests.

(t *testing.T)

Source from the content-addressed store, hash-verified

958
959// TestDump executes all of the tests described by dumpTests.
960func TestDump(t *testing.T) {
961 // Setup tests.
962 addIntDumpTests()
963 addUintDumpTests()
964 addBoolDumpTests()
965 addFloatDumpTests()
966 addComplexDumpTests()
967 addArrayDumpTests()
968 addSliceDumpTests()
969 addStringDumpTests()
970 addInterfaceDumpTests()
971 addMapDumpTests()
972 addStructDumpTests()
973 addUintptrDumpTests()
974 addUnsafePointerDumpTests()
975 addChanDumpTests()
976 addFuncDumpTests()
977 addCircularDumpTests()
978 addPanicDumpTests()
979 addErrorDumpTests()
980 addCgoDumpTests()
981
982 t.Logf("Running %d tests", len(dumpTests))
983 for i, test := range dumpTests {
984 buf := new(bytes.Buffer)
985 spew.Fdump(buf, test.in)
986 s := buf.String()
987 if testFailed(s, test.wants) {
988 t.Errorf("Dump #%d\n got: %s %s", i, s, stringizeWants(test.wants))
989 continue
990 }
991 }
992}
993
994func TestDumpSortedKeys(t *testing.T) {
995 cfg := spew.ConfigState{SortKeys: true}

Callers

nothing calls this directly

Calls 15

FdumpFunction · 0.92
addIntDumpTestsFunction · 0.85
addUintDumpTestsFunction · 0.85
addBoolDumpTestsFunction · 0.85
addFloatDumpTestsFunction · 0.85
addComplexDumpTestsFunction · 0.85
addArrayDumpTestsFunction · 0.85
addSliceDumpTestsFunction · 0.85
addStringDumpTestsFunction · 0.85
addInterfaceDumpTestsFunction · 0.85
addMapDumpTestsFunction · 0.85
addStructDumpTestsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…