Skip to content

Package tests implements a suite of tests for certmagic.Storage

License

Notifications You must be signed in to change notification settings

oyato/certmagic-storage-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

certmagic-storage-tests

Package tests implements a suite of tests for certmagic.Storage

Install

go get github.com/oyato/certmagic-storage-tests

Usage

This is package a for testing, so be sure to only import it inside your _test.go file.

package storage

import (
	tests "github.com/oyato/certmagic-storage-tests"
	"testing"
)

func TestStorage(t *testing.T) {
	// set up your storage
	storage := NewInstanceOfYourStorage()
	// then run the tests on it
	tests.NewTestSuite(storage).Run(t)
}

Note

At this time, it's an exported version of tests used for https://github.com/oyato/certmagic-storage-badger and might be incomplete or unsuitable for testing other storage implementations.

About

Package tests implements a suite of tests for certmagic.Storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages