| 28 | } |
| 29 | |
| 30 | func TestAPIMeta(t *testing.T) { |
| 31 | meta, _, err := client.Meta.Get(t.Context()) |
| 32 | if err != nil { |
| 33 | t.Fatalf("Get returned error: %v", err) |
| 34 | } |
| 35 | |
| 36 | if len(meta.Hooks) == 0 { |
| 37 | t.Error("Get returned no hook addresses") |
| 38 | } |
| 39 | |
| 40 | if len(meta.Git) == 0 { |
| 41 | t.Error("Get returned no git addresses") |
| 42 | } |
| 43 | |
| 44 | if *meta.VerifiablePasswordAuthentication { |
| 45 | t.Error("APIMeta VerifiablePasswordAuthentication is true") |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func TestRateLimits(t *testing.T) { |
| 50 | limits, _, err := client.RateLimit.Get(t.Context()) |