MCPcopy Index your code
hub / github.com/coder/coder / assertDoesNotContain

Function assertDoesNotContain

cli/support_test.go:469–477  ·  view source on GitHub ↗
(t *testing.T, f *zip.File, vals ...string)

Source from the content-addressed store, hash-verified

467}
468
469func assertDoesNotContain(t *testing.T, f *zip.File, vals ...string) {
470 t.Helper()
471 bs := readBytesFromZip(t, f)
472 for _, val := range vals {
473 if bytes.Contains(bs, []byte(val)) {
474 t.Fatalf("file %q should not contain value %q", f.Name, val)
475 }
476 }
477}
478
479func seedSecretDeploymentOptions(t *testing.T, dc *codersdk.DeploymentConfig, secretValue string) {
480 t.Helper()

Callers 1

assertBundleContentsFunction · 0.85

Calls 4

readBytesFromZipFunction · 0.85
HelperMethod · 0.65
ContainsMethod · 0.45
FatalfMethod · 0.45

Tested by

no test coverage detected