Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ TestRelative
Function
TestRelative
cli/util_internal_test.go:86–91 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
84
}
85
86
func
TestRelative(t *testing.T) {
87
t.Parallel()
88
assert.Equal(t, relative(time.Minute),
"in 1m"
)
89
assert.Equal(t, relative(-time.Minute),
"1m ago"
)
90
assert.Equal(t, relative(0),
"now"
)
91
}
Callers
nothing calls this directly
Calls
2
relative
Function · 0.85
Equal
Method · 0.45
Tested by
no test coverage detected