github.com/hashicorp/vault/sdk@v0.13.0/physical/inmem/inmem_test.go (about) 1 // Copyright (c) HashiCorp, Inc. 2 // SPDX-License-Identifier: MPL-2.0 3 4 package inmem 5 6 import ( 7 "testing" 8 9 log "github.com/hashicorp/go-hclog" 10 "github.com/hashicorp/vault/sdk/helper/logging" 11 "github.com/hashicorp/vault/sdk/physical" 12 ) 13 14 func TestInmem(t *testing.T) { 15 logger := logging.NewVaultLogger(log.Debug) 16 17 inm, err := NewInmem(nil, logger) 18 if err != nil { 19 t.Fatal(err) 20 } 21 physical.ExerciseBackend(t, inm) 22 physical.ExerciseBackend_ListPrefix(t, inm) 23 }