MCPcopy Create free account
hub / github.com/basecamp/hey-cli / assertContains

Function assertContains

tests/smoke/helpers_test.go:437–442  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Assertion helpers ---------------------------------------------------------------------------

(t *testing.T, haystack, needle string)

Source from the content-addressed store, hash-verified

435 chromedp.WaitReady(`body`, chromedp.ByQuery),
436 chromedp.Sleep(1*time.Second),
437 chromedp.Text(`body`, &text, chromedp.ByQuery),
438 ); err != nil {
439 t.Fatalf("browser navigate to %s failed: %v", pageURL, err)
440 }
441 return text
442}
443
444// ---------------------------------------------------------------------------
445// Server-side verification helpers

Callers 15

TestConfigSetFunction · 0.85
TestTodoCRUDFunction · 0.85
TestTodoAddWithDateFunction · 0.85
TestComposeFunction · 0.85
TestThreadsFunction · 0.85
TestReplyFunction · 0.85
TestTimetrackingFunction · 0.85
TestSeenUnseenFunction · 0.85

Calls 1

truncOutputFunction · 0.85

Tested by

no test coverage detected