(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestFormDataValues(t *testing.T) { |
| 139 | t.Parallel() |
| 140 | |
| 141 | data := FormData{} |
| 142 | data.Append("a", 1) |
| 143 | data.Append("b", 2) |
| 144 | data.Append("c", 3) |
| 145 | data.Append("a", 4) |
| 146 | |
| 147 | values := data.Values() |
| 148 | |
| 149 | expectedKeys := []any{1, 2, 3, 4} |
| 150 | |
| 151 | for _, expected := range expectedKeys { |
| 152 | if !list.ExistInSlice(expected, values) { |
| 153 | t.Fatalf("Expected key %s to exists in %v", expected, values) |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | func TestFormDataEntries(t *testing.T) { |
| 159 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…