MCPcopy Index your code
hub / github.com/coder/coder / TestAscending

Function TestAscending

coderd/util/slice/slice_test.go:186–192  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

184}
185
186func TestAscending(t *testing.T) {
187 t.Parallel()
188
189 assert.Equal(t, -1, slice.Ascending(1, 2))
190 assert.Equal(t, 0, slice.Ascending(1, 1))
191 assert.Equal(t, 1, slice.Ascending(2, 1))
192}
193
194func TestDescending(t *testing.T) {
195 t.Parallel()

Callers

nothing calls this directly

Calls 2

AscendingFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected