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

Function TestDescending

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

Source from the content-addressed store, hash-verified

192}
193
194func TestDescending(t *testing.T) {
195 t.Parallel()
196
197 assert.Equal(t, 1, slice.Descending(1, 2))
198 assert.Equal(t, 0, slice.Descending(1, 1))
199 assert.Equal(t, -1, slice.Descending(2, 1))
200}
201
202func TestOmit(t *testing.T) {
203 t.Parallel()

Callers

nothing calls this directly

Calls 2

DescendingFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected