File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -368,27 +368,3 @@ func (t *simpleTestingT) FailNow() {
368368func (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- }
You can’t perform that action at this time.
0 commit comments