MCPcopy Create free account
hub / github.com/google/go-github / TestAPIMeta

Function TestAPIMeta

test/integration/misc_test.go:30–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func 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
49func TestRateLimits(t *testing.T) {
50 limits, _, err := client.RateLimit.Get(t.Context())

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…