| 1 |
package fastly |
| 2 |
|
| 3 |
import "testing" |
| 4 |
|
| 5 |
func TestClient_Diff(t *testing.T) { |
| 6 |
} |
| 7 |
|
| 8 |
func TestClient_Diff_validation(t *testing.T) { |
| 9 |
var err error |
| 10 |
_, err = testClient.GetDiff(&GetDiffInput{ |
| 11 |
Service: "", |
| 12 |
}) |
| 13 |
if err != ErrMissingService { |
| 14 |
t.Errorf("bad error: %s", err) |
| 15 |
} |
| 16 |
|
| 17 |
_, err = testClient.GetDiff(&GetDiffInput{ |
| 18 |
Service: "foo", |
| 19 |
From: 0, |
| 20 |
}) |
| 21 |
if err != ErrMissingFrom { |
| 22 |
t.Errorf("bad error: %s", err) |
| 23 |
} |
| 24 |
|
| 25 |
_, err = testClient.GetDiff(&GetDiffInput{ |
| 26 |
Service: "foo", |
| 27 |
From: 1, |
| 28 |
To: 0, |
| 29 |
}) |
| 30 |
if err != ErrMissingTo { |
| 31 |
t.Errorf("bad error: %s", err) |
| 32 |
} |
| 33 |
} |