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

Function TestCopyStringSet

pkg/set/stringset_test.go:44–50  ·  view source on GitHub ↗

CopyStringSet() is called and the result is validated.

(t *testing.T)

Source from the content-addressed store, hash-verified

42
43// CopyStringSet() is called and the result is validated.
44func TestCopyStringSet(t *testing.T) {
45 ss := CreateStringSet("foo")
46 sscopy := CopyStringSet(ss)
47 if !ss.Equals(sscopy) {
48 t.Fatalf("expected: %s, got: %s", ss, sscopy)
49 }
50}
51
52// StringSet.Add() is called with series of cases for valid and erroneous inputs and the result is validated.
53func TestStringSetAdd(t *testing.T) {

Callers

nothing calls this directly

Calls 3

CreateStringSetFunction · 0.85
CopyStringSetFunction · 0.85
EqualsMethod · 0.45

Tested by

no test coverage detected