MCPcopy Create free account
hub / github.com/github/gh-aw / TestIsBotUser

Function TestIsBotUser

pkg/cli/outcome_eval_test.go:125–130  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func TestIsBotUser(t *testing.T) {
126 assert.True(t, isBotUser("github-actions[bot]"), "github-actions[bot] is a bot")
127 assert.True(t, isBotUser("github-actions"), "github-actions is a bot")
128 assert.True(t, isBotUser("copilot-swe-agent"), "copilot-swe-agent is a bot")
129 assert.False(t, isBotUser("mnkiefer"), "human user is not a bot")
130}
131
132func TestExtractCommentID(t *testing.T) {
133 tests := []struct {

Callers

nothing calls this directly

Calls 1

isBotUserFunction · 0.85

Tested by

no test coverage detected