move item
This commit is contained in:
parent
f4936d4547
commit
bb80b91a3c
|
@ -1 +1,2 @@
|
|||
test.db*
|
||||
plannersync
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
"go-mod.ewintr.nl/planner/sync/client"
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
)
|
||||
|
||||
func TestServerServeHTTP(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"slices"
|
||||
"time"
|
||||
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
)
|
||||
|
||||
type Memory struct {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
)
|
||||
|
||||
func TestMemoryItem(t *testing.T) {
|
||||
|
@ -87,14 +87,14 @@ func TestMemoryItem(t *testing.T) {
|
|||
})
|
||||
expItems := []item.Item{t1, t2}
|
||||
sort.Slice(expItems, func(i, j int) bool {
|
||||
return expItems[i].ID < actItems[j].ID
|
||||
return expItems[i].ID < expItems[j].ID
|
||||
})
|
||||
|
||||
if actItems[0].ID != t1.ID {
|
||||
t.Errorf("exp %v, got %v", actItems[0].ID, t1.ID)
|
||||
if actItems[0].ID != expItems[0].ID {
|
||||
t.Errorf("exp %v, got %v", actItems[0].ID, expItems[0].ID)
|
||||
}
|
||||
if actItems[1].ID != t2.ID {
|
||||
t.Errorf("exp %v, got %v", actItems[1].ID, t2.ID)
|
||||
if actItems[1].ID != expItems[1].ID {
|
||||
t.Errorf("exp %v, got %v", actItems[1].ID, expItems[1].ID)
|
||||
}
|
||||
|
||||
t.Log("select kind")
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"time"
|
||||
|
||||
_ "github.com/lib/pq"
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"time"
|
||||
|
||||
"go-mod.ewintr.nl/planner/sync/item"
|
||||
"go-mod.ewintr.nl/planner/item"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in New Issue