TestGetActionPinFallback tests that getActionPin returns empty string for unknown actions
(t *testing.T)
| 42 | |
| 43 | // TestGetActionPinFallback tests that getActionPin returns empty string for unknown actions |
| 44 | func 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 |
| 53 | func isValidSHA(s string) bool { |
nothing calls this directly
no test coverage detected