MCPcopy Create free account
hub / github.com/actions/actions-runner-controller / TestUserAgent

Function TestUserAgent

github/github_test.go:156–161  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

154}
155
156func TestUserAgent(t *testing.T) {
157 client := newTestClient()
158 if client.UserAgent != "actions-runner-controller/NA" {
159 t.Errorf("UserAgent should be set to actions-runner-controller/NA")
160 }
161}

Callers

nothing calls this directly

Calls 2

newTestClientFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected