MCPcopy Create free account
hub / github.com/cli/cli / TestGetJobRequiresRepoAndJobID

Function TestGetJobRequiresRepoAndJobID

pkg/cmd/agent-task/capi/job_test.go:15–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestGetJobRequiresRepoAndJobID(t *testing.T) {
16 client := &CAPIClient{}
17 _, err := client.GetJob(context.Background(), "", "", "only-job-id")
18 assert.EqualError(t, err, "owner, repo, and jobID are required")
19 _, err = client.GetJob(context.Background(), "", "only-repo", "")
20 assert.EqualError(t, err, "owner, repo, and jobID are required")
21 _, err = client.GetJob(context.Background(), "only-owner", "", "")
22 assert.EqualError(t, err, "owner, repo, and jobID are required")
23 _, err = client.GetJob(context.Background(), "", "", "")
24 assert.EqualError(t, err, "owner, repo, and jobID are required")
25}
26
27func TestGetJob(t *testing.T) {
28 sampleDateString := "2025-08-29T00:00:00Z"

Callers

nothing calls this directly

Calls 1

GetJobMethod · 0.95

Tested by

no test coverage detected