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

Function TestGetActionPinFallback

pkg/workflow/action_pins_test.go:44–50  ·  view source on GitHub ↗

TestGetActionPinFallback tests that getActionPin returns empty string for unknown actions

(t *testing.T)

Source from the content-addressed store, hash-verified

42
43// TestGetActionPinFallback tests that getActionPin returns empty string for unknown actions
44func TestGetActionPinFallback(t *testing.T) {
45 result := getActionPin("unknown/action")
46 expected := ""
47 if result != expected {
48 t.Errorf("getActionPin(unknown/action) = %s, want %s (empty string)", result, expected)
49 }
50}
51
52// isValidSHA checks if a string is a valid 40-character hexadecimal SHA
53func isValidSHA(s string) bool {

Callers

nothing calls this directly

Calls 2

getActionPinFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected