mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-25 19:31:14 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
19 lines
373 B
Go
19 lines
373 B
Go
// Copyright IBM Corp. 2016, 2025
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|