MCPcopy Create free account
hub / github.com/cockroachdb/redact / TestJoin

Function TestJoin

util_test.go:33–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestJoin(t *testing.T) {
34 v := []RedactableString{"c", "a", "b"}
35 exp := RedactableString("c, a, b")
36 act := Join(", ", v)
37 if exp != act {
38 t.Errorf("expected %q, got %q", exp, act)
39 }
40}
41
42func TestJoinTo(t *testing.T) {
43 testCases := []struct {

Callers

nothing calls this directly

Calls 2

RedactableStringTypeAlias · 0.85
JoinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…