good morning!!!!

Skip to content
Snippets Groups Projects
Commit ce2f1051 authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

Leaving test clean.

parent 51b6649c
Branches
Tags
No related merge requests found
...@@ -182,8 +182,6 @@ func (self *SourceCollection) FetchAll(dst interface{}, terms ...interface{}) er ...@@ -182,8 +182,6 @@ func (self *SourceCollection) FetchAll(dst interface{}, terms ...interface{}) er
return err return err
} }
fmt.Printf("DEST %v\n", dst)
if len(queryChunks.Relations) > 0 { if len(queryChunks.Relations) > 0 {
// Iterate over results. // Iterate over results.
...@@ -216,7 +214,6 @@ func (self *SourceCollection) FetchAll(dst interface{}, terms ...interface{}) er ...@@ -216,7 +214,6 @@ func (self *SourceCollection) FetchAll(dst interface{}, terms ...interface{}) er
val = item.MapIndex(reflect.ValueOf(extkey)) val = item.MapIndex(reflect.ValueOf(extkey))
} }
if val.IsValid() { if val.IsValid() {
fmt.Printf("CONST: %v --> %v\n", term, val.Interface())
term = db.Cond{k: toInternal(val.Interface())} term = db.Cond{k: toInternal(val.Interface())}
} }
} }
......
...@@ -5,10 +5,10 @@ import ( ...@@ -5,10 +5,10 @@ import (
"github.com/gosexy/db" "github.com/gosexy/db"
"github.com/gosexy/to" "github.com/gosexy/to"
"github.com/kr/pretty" "github.com/kr/pretty"
"labix.org/v2/mgo/bson"
"math/rand" "math/rand"
"reflect" "reflect"
"testing" "testing"
//"labix.org/v2/mgo/bson"
"time" "time"
) )
...@@ -441,7 +441,7 @@ func TestRelationStruct(t *testing.T) { ...@@ -441,7 +441,7 @@ func TestRelationStruct(t *testing.T) {
people := sess.ExistentCollection("people") people := sess.ExistentCollection("people")
results := []struct { results := []struct {
Id bson.ObjectId `_id` Id interface{} `_id`
Name string Name string
PlaceCodeId int `place_code_id` PlaceCodeId int `place_code_id`
LivesIn struct { LivesIn struct {
...@@ -451,7 +451,7 @@ func TestRelationStruct(t *testing.T) { ...@@ -451,7 +451,7 @@ func TestRelationStruct(t *testing.T) {
Name string Name string
} }
HasVisited []struct { HasVisited []struct {
PlaceId bson.ObjectId `place_id` PlaceId interface{} `place_id`
Place struct { Place struct {
Name string Name string
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment