MCPcopy Create free account
hub / github.com/github/gh-aw / TestFormatFieldValue_InvalidValue

Function TestFormatFieldValue_InvalidValue

pkg/console/render_formatting_test.go:171–178  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

169}
170
171func TestFormatFieldValue_InvalidValue(t *testing.T) {
172 // Test invalid reflect.Value
173 var val reflect.Value
174 result := formatFieldValue(val)
175 if result != "-" {
176 t.Errorf("invalid value: got %q, want %q", result, "-")
177 }
178}
179
180func TestFormatFieldValueWithTag_NumberFormat(t *testing.T) {
181 tests := []struct {

Callers

nothing calls this directly

Calls 2

formatFieldValueFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected