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

Function TestCreateStringSet

pkg/set/stringset_test.go:36–41  ·  view source on GitHub ↗

CreateStringSet() is called and the result is validated.

(t *testing.T)

Source from the content-addressed store, hash-verified

34
35// CreateStringSet() is called and the result is validated.
36func TestCreateStringSet(t *testing.T) {
37 ss := CreateStringSet("foo")
38 if str := ss.String(); str != `[foo]` {
39 t.Fatalf("expected: %s, got: %s", `["foo"]`, str)
40 }
41}
42
43// CopyStringSet() is called and the result is validated.
44func TestCopyStringSet(t *testing.T) {

Callers

nothing calls this directly

Calls 2

CreateStringSetFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected