MCPcopy Create free account
hub / github.com/pkg/profile / TestValidateOutput

Function TestValidateOutput

profile_test.go:309–317  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

307}}
308
309func TestValidateOutput(t *testing.T) {
310 for _, tt := range validateOutputTests {
311 r := strings.NewReader(tt.input)
312 got := validateOutput(r, tt.lines)
313 if tt.want != got {
314 t.Errorf("validateOutput(%q, %q), want %v, got %v", tt.input, tt.lines, tt.want, got)
315 }
316 }
317}
318
319// runTest executes the go program supplied and returns the contents of stdout,
320// stderr, and an error which may contain status information about the result

Callers

nothing calls this directly

Calls 1

validateOutputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…