MCPcopy
hub / github.com/segmentio/ksuid / testCompressedSetGoString

Function testCompressedSetGoString

set_test.go:72–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func testCompressedSetGoString(t *testing.T) {
73 id1, _ := Parse("0uHjRkQoL2JKAQIULPdqqb5fOkk")
74 id2, _ := Parse("0uHjRvkOG5CbtoXW5oCEp3L2xBu")
75 id3, _ := Parse("0uHjSJ4Pe5606kT2XWixK6dirlo")
76
77 set := Compress(id1, id2, id3)
78
79 if s := set.GoString(); s != `ksuid.CompressedSet{"0uHjRkQoL2JKAQIULPdqqb5fOkk", "0uHjRvkOG5CbtoXW5oCEp3L2xBu", "0uHjSJ4Pe5606kT2XWixK6dirlo"}` {
80 t.Error(s)
81 }
82}
83
84func testCompressedSetSparse(t *testing.T) {
85 now := time.Now()

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.85
CompressFunction · 0.85
GoStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…