Update storage to new object format
This commit is contained in:
17
storage/entity/one_test.go
Normal file
17
storage/entity/one_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestOne(t *testing.T) {
|
||||
one := One{
|
||||
Name: "myname",
|
||||
Type: "mytype",
|
||||
}
|
||||
q := one.Query()
|
||||
if want := fmt.Sprint(One{Name: one.Name}); want != fmt.Sprint(q) {
|
||||
t.Error(want, q)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user