(t *testing.T, value any)
| 2944 | } |
| 2945 | |
| 2946 | func mustJSON(t *testing.T, value any) json.RawMessage { |
| 2947 | t.Helper() |
| 2948 | |
| 2949 | payload, err := json.Marshal(value) |
| 2950 | if err != nil { |
| 2951 | t.Fatalf("json.Marshal() error = %v", err) |
| 2952 | } |
| 2953 | return payload |
| 2954 | } |
no outgoing calls
no test coverage detected