MCPcopy Create free account
hub / github.com/google/pprof / TestAutoComplete

Function TestAutoComplete

internal/driver/driver_test.go:1068–1076  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1066}
1067
1068func TestAutoComplete(t *testing.T) {
1069 complete := newCompleter(functionNames(heapProfile()))
1070
1071 for _, test := range autoCompleteTests {
1072 if out := complete(test.in); out != test.out {
1073 t.Errorf("autoComplete(%s) = %s; want %s", test.in, out, test.out)
1074 }
1075 }
1076}
1077
1078func TestTagFilter(t *testing.T) {
1079 var tagFilterTests = []struct {

Callers

nothing calls this directly

Calls 3

newCompleterFunction · 0.85
functionNamesFunction · 0.85
heapProfileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…