(t *testing.T)
| 503 | } |
| 504 | |
| 505 | func TestFoundKeysLoad(t *testing.T) { |
| 506 | mustLoadFoundKeys(t) |
| 507 | |
| 508 | if !IsProtonExtractor("keys") { |
| 509 | t.Fatal("'keys' tag not found after LoadFoundKeys") |
| 510 | } |
| 511 | |
| 512 | protonMu.RLock() |
| 513 | keysIDs := protonTagMap["keys"] |
| 514 | protonMu.RUnlock() |
| 515 | |
| 516 | if len(keysIDs) < 100 { |
| 517 | t.Errorf("expected >= 100 found/keys templates, got %d", len(keysIDs)) |
| 518 | } |
| 519 | } |
| 520 | |
| 521 | func TestFoundKeysAppendDoesNotOverwrite(t *testing.T) { |
| 522 | mustLoadFoundKeys(t) |
nothing calls this directly
no test coverage detected