Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
66
type
choicetype = Enum[choicestype]
67
68
func
TestEnumTypeWithFunction(t *testing.T) {
69
assert.Equal(t,
"potato"
, choicetype(0).Type())
70
}
71
72
func
TestEnumHelp(t *testing.T) {
73
assert.Equal(t,
"A, B, C"
, choice(0).Help())
Callers
nothing calls this directly
Calls
2
Type
Method · 0.65
Equal
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…