MCPcopy Create free account
hub / github.com/openclaw/gogcli / TestGetRelationType

Function TestGetRelationType

internal/cmd/groups_test.go:35–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestGetRelationType(t *testing.T) {
36 if got := getRelationType("DIRECT"); got != "direct" {
37 t.Fatalf("unexpected relation: %q", got)
38 }
39 if got := getRelationType("INDIRECT"); got != "indirect" {
40 t.Fatalf("unexpected relation: %q", got)
41 }
42 if got := getRelationType("CUSTOM"); got != "CUSTOM" {
43 t.Fatalf("unexpected relation: %q", got)
44 }
45}
46
47func TestGetMemberRole(t *testing.T) {
48 if got := getMemberRole(nil); got != "MEMBER" {

Callers

nothing calls this directly

Calls 1

getRelationTypeFunction · 0.85

Tested by

no test coverage detected