 b319ba7c5a
			
		
	
	b319ba7c5a
	
	
	
		
			
			Removes storage interface and replaces with storage functions. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
		
			
				
	
	
		
			22 lines
		
	
	
		
			517 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			517 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package storage
 | |
| 
 | |
| import (
 | |
| 	"path/filepath"
 | |
| 	"testing"
 | |
| 
 | |
| 	// Does not require root but flag must be defined for snapshot tests
 | |
| 	_ "github.com/containerd/containerd/testutil"
 | |
| )
 | |
| 
 | |
| func TestMetastore(t *testing.T) {
 | |
| 	MetaStoreSuite(t, "Metastore", func(root string) (*MetaStore, error) {
 | |
| 		return NewMetaStore(filepath.Join(root, "metadata.db"))
 | |
| 	})
 | |
| }
 | |
| 
 | |
| func BenchmarkSuite(b *testing.B) {
 | |
| 	Benchmarks(b, "BoltDBBench", func(root string) (*MetaStore, error) {
 | |
| 		return NewMetaStore(filepath.Join(root, "metadata.db"))
 | |
| 	})
 | |
| }
 |