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

Function deleteSubscription

test/integration/activity_test.go:74–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func deleteSubscription(t *testing.T) {
75 // delete subscription
76 _, err := client.Activity.DeleteRepositorySubscription(t.Context(), owner, repo)
77 if err != nil {
78 t.Fatalf("Activity.DeleteRepositorySubscription returned error: %v", err)
79 }
80
81 // check again and verify not watching
82 sub, _, err := client.Activity.GetRepositorySubscription(t.Context(), owner, repo)
83 if err != nil {
84 t.Fatalf("Activity.GetRepositorySubscription returned error: %v", err)
85 }
86 if sub != nil {
87 t.Fatalf("Still watching %v/%v after deleting subscription.", owner, repo)
88 }
89}
90
91func createSubscription(t *testing.T) {
92 // watch the target repository

Callers 1

TestActivity_WatchingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…