Skip to content

Commit 000d0e3

Browse files
author
Arnaud Delobelle
committed
Remove TestSomething committed by mistake
1 parent eb83424 commit 000d0e3

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

mock_test.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -368,27 +368,3 @@ func (t *simpleTestingT) FailNow() {
368368
func (t *simpleTestingT) Failed() bool {
369369
return t.failed
370370
}
371-
372-
func TestSomething(t *testing.T) {
373-
mock := NewMock()
374-
ch := make(chan interface{})
375-
mock.On(Table("people")).Return([]interface{}{ch, ch}, nil)
376-
go func() {
377-
ch <- map[string]interface{}{"id": 1, "name": "John Smith"}
378-
ch <- map[string]interface{}{"id": 2, "name": "Jane Smith"}
379-
}()
380-
cursor, err := Table("people").Run(mock)
381-
if err != nil {
382-
t.Errorf("err is: %v", err)
383-
}
384-
385-
var rows []interface{}
386-
err = cursor.All(&rows)
387-
if err != nil {
388-
t.Errorf("err is: %v", err)
389-
}
390-
391-
// Test result of rows
392-
393-
mock.AssertExpectations(t)
394-
}

0 commit comments

Comments
 (0)