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

Function assertFieldValue

cli/server_aibridge_internal_test.go:778–787  ·  view source on GitHub ↗
(t *testing.T, fields slog.Map, name string, expected interface{})

Source from the content-addressed store, hash-verified

776}
777
778func assertFieldValue(t *testing.T, fields slog.Map, name string, expected interface{}) {
779 t.Helper()
780 for _, f := range fields {
781 if f.Name == name {
782 assert.Equal(t, expected, f.Value)
783 return
784 }
785 }
786 t.Errorf("field %q not found", name)
787}

Calls 3

HelperMethod · 0.65
EqualMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected