(t *testing.T)
| 455 | } |
| 456 | |
| 457 | func TestIssuesService_LockWithReason(t *testing.T) { |
| 458 | t.Parallel() |
| 459 | client, mux, _ := setup(t) |
| 460 | |
| 461 | mux.HandleFunc("/repos/o/r/issues/1/lock", func(w http.ResponseWriter, r *http.Request) { |
| 462 | testMethod(t, r, "PUT") |
| 463 | w.WriteHeader(http.StatusNoContent) |
| 464 | }) |
| 465 | |
| 466 | opt := &LockIssueOptions{LockReason: "off-topic"} |
| 467 | |
| 468 | ctx := t.Context() |
| 469 | if _, err := client.Issues.Lock(ctx, "o", "r", 1, opt); err != nil { |
| 470 | t.Errorf("Issues.Lock returned error: %v", err) |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | func TestIssuesService_Unlock(t *testing.T) { |
| 475 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…