(flags testFlags, name string, def T)
| 182 | var _ driver.FlagSet = testFlags{} |
| 183 | |
| 184 | func getFlag[T any](flags testFlags, name string, def T) *T { |
| 185 | result := &def |
| 186 | if v, ok := flags[name]; ok { |
| 187 | *result = v.(T) |
| 188 | } |
| 189 | return result |
| 190 | } |
| 191 | |
| 192 | type testUI struct { |
| 193 | T testing.TB |
no outgoing calls
no test coverage detected
searching dependent graphs…