MCPcopy Create free account
hub / github.com/featureform/featureform / TestStringSetContains

Function TestStringSetContains

helpers/string_set/string_set_test.go:7–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestStringSetContains(t *testing.T) {
8 setA := StringSet{"a": true, "b": true, "c": false}
9 setB := StringSet{"a": true, "c": false}
10
11 expected := true
12 actual := setA.Contains(setB)
13
14 if expected != actual {
15 t.Errorf("Expected set A to contain set B, but instead received: %v", actual)
16 }
17}
18
19func TestStringSetDoesNotContain(t *testing.T) {
20 setA := StringSet{"a": true, "c": false}

Callers

nothing calls this directly

Calls 1

ContainsMethod · 0.95

Tested by

no test coverage detected