MCPcopy
hub / github.com/rclone/rclone / TestEnumTypeWithFunction

Function TestEnumTypeWithFunction

fs/enum_test.go:68–70  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66type choicetype = Enum[choicestype]
67
68func TestEnumTypeWithFunction(t *testing.T) {
69 assert.Equal(t, "potato", choicetype(0).Type())
70}
71
72func TestEnumHelp(t *testing.T) {
73 assert.Equal(t, "A, B, C", choice(0).Help())

Callers

nothing calls this directly

Calls 2

TypeMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…