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

Function requireEqualOrBothNil

coderd/workspaceagents_test.go:3328–3335  ·  view source on GitHub ↗
(t testing.TB, a, b *T)

Source from the content-addressed store, hash-verified

3326func (*fakeTelemetryReporter) Close() {}
3327
3328func requireEqualOrBothNil[T any](t testing.TB, a, b *T) {
3329 t.Helper()
3330 if a != nil && b != nil {
3331 require.Equal(t, *a, *b)
3332 return
3333 }
3334 require.Equal(t, a, b)
3335}
3336
3337func TestAgentConnectionInfo(t *testing.T) {
3338 t.Parallel()

Callers 1

TestUserTailnetTelemetryFunction · 0.85

Calls 2

HelperMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected