MCPcopy Create free account
hub / github.com/couchbase/cbft / TestConvertStatName

Function TestConvertStatName

ns_server_test.go:13–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11import "testing"
12
13func TestConvertStatName(t *testing.T) {
14 tests := []struct {
15 in string
16 out string
17 }{
18 {
19 "/x/y/z",
20 "y_z",
21 },
22 }
23
24 for _, test := range tests {
25 actual := convertStatName(test.in)
26 if actual != test.out {
27 t.Errorf("expected '%s' got '%s' for '%s'", test.out, actual, test.in)
28 }
29 }
30}
31
32func TestCamelToUnderscore(t *testing.T) {
33 tests := []struct {

Callers

nothing calls this directly

Calls 1

convertStatNameFunction · 0.85

Tested by

no test coverage detected