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

Function TestPositiveInt64

coderd/x/chatd/chatloop/contextlimit_internal_test.go:188–202  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

186}
187
188func TestPositiveInt64(t *testing.T) {
189 t.Parallel()
190
191 got, ok := positiveInt64(42)
192 require.True(t, ok)
193 require.Equal(t, int64(42), got)
194
195 got, ok = positiveInt64(0)
196 require.False(t, ok)
197 require.Equal(t, int64(0), got)
198
199 got, ok = positiveInt64(-1)
200 require.False(t, ok)
201 require.Equal(t, int64(0), got)
202}
203
204func TestCollectContextLimitValues(t *testing.T) {
205 t.Parallel()

Callers

nothing calls this directly

Calls 2

positiveInt64Function · 0.85
EqualMethod · 0.45

Tested by

no test coverage detected