(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func TestGetAPIKeyFromHelper_EmptyCommand(t *testing.T) { |
| 66 | _, err := GetAPIKeyFromHelper(context.Background(), "") |
| 67 | if err == nil { |
| 68 | t.Fatal("GetAPIKeyFromHelper() with empty command should return error") |
| 69 | } |
| 70 | if !strings.Contains(err.Error(), "empty") { |
| 71 | t.Errorf("error message should mention empty command, got: %v", err) |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | func TestGetAPIKeyFromHelper_EmptyOutput(t *testing.T) { |
| 76 | tests := []struct { |
nothing calls this directly
no test coverage detected