MCPcopy
hub / github.com/minio/minio-go / TestIntSetRemove

Function TestIntSetRemove

pkg/set/set_test.go:58–67  ·  view source on GitHub ↗

Test Remove()

(t *testing.T)

Source from the content-addressed store, hash-verified

56
57// Test Remove()
58func TestIntSetRemove(t *testing.T) {
59 s := Create(1, 2, 3)
60 s.Remove(2)
61 if s.Contains(2) {
62 t.Fatalf("expected set not to contain 2 after removal")
63 }
64 if !s.Contains(1) || !s.Contains(3) {
65 t.Fatalf("expected set to still contain 1 and 3")
66 }
67}
68
69// Test Equals()
70func TestIntSetEquals(t *testing.T) {

Callers

nothing calls this directly

Calls 3

CreateFunction · 0.85
RemoveMethod · 0.45
ContainsMethod · 0.45

Tested by

no test coverage detected