keepertest

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeeperFactory

type KeeperFactory func() (secrets.Keeper, error)

type Suite

type Suite struct {
	// contains filtered or unexported fields
}

func New

func New(f KeeperFactory) *Suite

func (*Suite) AddGetPreset added in v0.4.0

func (s *Suite) AddGetPreset(sec secrets.Secret)

AddGetPreset allows keepers that do not provide a complete read/write implementation to be tested. As of now, this test assumes that a secret name is not reused.

func (*Suite) Run

func (s *Suite) Run(t *testing.T)

func (*Suite) RunWithPresets added in v0.4.0

func (s *Suite) RunWithPresets(t *testing.T)

func (*Suite) SecretKeeperGetMissingTest

func (s *Suite) SecretKeeperGetMissingTest(t *testing.T)

func (*Suite) SecretKeeperGetPresets added in v0.4.0

func (s *Suite) SecretKeeperGetPresets(t *testing.T)

SecretKeeperGetPresets tests the GetSecretsByName method using the presets provided to AddGetPreset.

func (*Suite) SecretKeeperSetAndGet

func (s *Suite) SecretKeeperSetAndGet(t *testing.T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL