(t *testing.T)
| 98 | } |
| 99 | |
| 100 | func TestFormatJqResults(t *testing.T) { |
| 101 | got := formatJqResults([]any{"hello", float64(42), true, nil, map[string]any{"id": float64(1)}}) |
| 102 | want := []string{`"hello"`, `42`, `true`, `null`, `{"id":1}`} |
| 103 | if !reflect.DeepEqual(got, want) { |
| 104 | t.Fatalf("formatJqResults() = %#v, want %#v", got, want) |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | func TestFormatJqExpectedValueInterpolatesOnlyStrings(t *testing.T) { |
| 109 | variables := map[string]string{"name": "Theo"} |
nothing calls this directly
no test coverage detected