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

Function testCompressedSetString

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

Source from the content-addressed store, hash-verified

58}
59
60func testCompressedSetString(t *testing.T) {
61 id1, _ := Parse("0uHjRkQoL2JKAQIULPdqqb5fOkk")
62 id2, _ := Parse("0uHjRvkOG5CbtoXW5oCEp3L2xBu")
63 id3, _ := Parse("0uHjSJ4Pe5606kT2XWixK6dirlo")
64
65 set := Compress(id1, id2, id3)
66
67 if s := set.String(); s != `["0uHjRkQoL2JKAQIULPdqqb5fOkk", "0uHjRvkOG5CbtoXW5oCEp3L2xBu", "0uHjSJ4Pe5606kT2XWixK6dirlo"]` {
68 t.Error(s)
69 }
70}
71
72func testCompressedSetGoString(t *testing.T) {
73 id1, _ := Parse("0uHjRkQoL2JKAQIULPdqqb5fOkk")

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.85
CompressFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…