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

Function TestIsProtonExtractor

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

Source from the content-addressed store, hash-verified

480}
481
482func 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
505func TestFoundKeysLoad(t *testing.T) {
506 mustLoadFoundKeys(t)

Callers

nothing calls this directly

Calls 3

mustLoadTemplatesFunction · 0.85
IsProtonExtractorFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected