MCPcopy Create free account
hub / github.com/chainreactors/spray / TestFoundKeysLoad

Function TestFoundKeysLoad

pkg/proton_test.go:505–519  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

503}
504
505func 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
521func TestFoundKeysAppendDoesNotOverwrite(t *testing.T) {
522 mustLoadFoundKeys(t)

Callers

nothing calls this directly

Calls 2

mustLoadFoundKeysFunction · 0.85
IsProtonExtractorFunction · 0.85

Tested by

no test coverage detected