mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Create sdk/ and api/ submodules (#6583)
This commit is contained in:
15
sdk/framework/testing.go
Normal file
15
sdk/framework/testing.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package framework
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestBackendRoutes is a helper to test that all the given routes will
|
||||
// route properly in the backend.
|
||||
func TestBackendRoutes(t *testing.T, b *Backend, rs []string) {
|
||||
for _, r := range rs {
|
||||
if b.Route(r) == nil {
|
||||
t.Fatalf("bad route: %s", r)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user