(t *testing.T)
| 480 | } |
| 481 | |
| 482 | func TestIsProtonExtractor(t *testing.T) { |
| 483 | mustLoadTemplates(t) |
| 484 | |
| 485 | tests := []struct { |
| 486 | name string |
| 487 | want bool |
| 488 | }{ |
| 489 | {"ip", true}, |
| 490 | {"cloud", true}, |
| 491 | {"spray-jwt-token", true}, |
| 492 | {"jwt-token", true}, |
| 493 | {"nonexistent-xyz", false}, |
| 494 | } |
| 495 | |
| 496 | for _, tt := range tests { |
| 497 | t.Run(tt.name, func(t *testing.T) { |
| 498 | if got := IsProtonExtractor(tt.name); got != tt.want { |
| 499 | t.Errorf("IsProtonExtractor(%q) = %v, want %v", tt.name, got, tt.want) |
| 500 | } |
| 501 | }) |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | func TestFoundKeysLoad(t *testing.T) { |
| 506 | mustLoadFoundKeys(t) |
nothing calls this directly
no test coverage detected