MCPcopy Create free account
hub / github.com/cozystack/talm / assertNotContains

Function assertNotContains

pkg/engine/render_test.go:208–213  ·  view source on GitHub ↗

assertNotContains checks that the output does NOT contain the substring.

(t *testing.T, output string, substr string)

Source from the content-addressed store, hash-verified

206
207// assertNotContains checks that the output does NOT contain the substring.
208func assertNotContains(t *testing.T, output string, substr string) {
209 t.Helper()
210 if strings.Contains(output, substr) {
211 t.Errorf("expected output NOT to contain %q, but it does.\nOutput:\n%s", substr, output)
212 }
213}
214
215func TestLegacyCozystack_ControlPlane(t *testing.T) {
216 output := renderChartTemplate(t, "../../charts/cozystack", "templates/controlplane.yaml")

Calls

no outgoing calls

Tested by

no test coverage detected