mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			372 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			372 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright (c) HashiCorp, Inc.
 | |
| // 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)
 | |
| 		}
 | |
| 	}
 | |
| }
 | 
