Implement package-local tests

This commit is contained in:
Alexander Neumann
2016-01-23 17:08:03 +01:00
parent 0a24261afb
commit 9a490f9e01
9 changed files with 818 additions and 18 deletions
+1 -18
View File
@@ -1,9 +1,6 @@
package backend
import (
"fmt"
"io"
)
import "io"
// Type is the type of a Blob.
type Type string
@@ -18,20 +15,6 @@ const (
Config = "config"
)
// Handle is used to store and access data in a backend.
type Handle struct {
Type Type
Name string
}
func (h Handle) String() string {
name := h.Name
if len(name) > 10 {
name = name[:10]
}
return fmt.Sprintf("<%s/%s>", h.Type, name)
}
// Backend is used to store and access data.
type Backend interface {
// Location returns a string that describes the type and location of the