MCPcopy Index your code
hub / github.com/cli/cli / TestGetSessionRequiresID

Function TestGetSessionRequiresID

pkg/cmd/agent-task/capi/sessions_test.go:1567–1572  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1565}
1566
1567func TestGetSessionRequiresID(t *testing.T) {
1568 client := &CAPIClient{}
1569
1570 _, err := client.GetSession(context.Background(), "")
1571 assert.EqualError(t, err, "missing session ID")
1572}
1573
1574func TestGetSession(t *testing.T) {
1575 sampleDateString := "2025-08-29T00:00:00Z"

Callers

nothing calls this directly

Calls 1

GetSessionMethod · 0.95

Tested by

no test coverage detected