(t *testing.T, stdout string, target any)
| 1025 | } |
| 1026 | |
| 1027 | func decodeJSONOutput(t *testing.T, stdout string, target any) { |
| 1028 | t.Helper() |
| 1029 | |
| 1030 | if err := json.Unmarshal([]byte(stdout), target); err != nil { |
| 1031 | t.Fatalf("json.Unmarshal(%s) error = %v", stdout, err) |
| 1032 | } |
| 1033 | } |
| 1034 | |
| 1035 | func assertToolError( |
| 1036 | t *testing.T, |
no outgoing calls
no test coverage detected