[Groonga-commit] groonga/grnci at f0b5dac [master] Add a test for DB.LoadEx() with --columns

Back to archive index

Susumu Yata null+****@clear*****
Thu Feb 11 13:33:38 JST 2016


Susumu Yata	2016-02-11 13:33:38 +0900 (Thu, 11 Feb 2016)

  New Revision: f0b5dacc364756ad256eebc68f4fa09e613aa451
  https://github.com/groonga/grnci/commit/f0b5dacc364756ad256eebc68f4fa09e613aa451

  Message:
    Add a test for DB.LoadEx() with --columns
    
    GitHub: #23

  Modified files:
    grnci_test.go

  Modified: grnci_test.go (+9 -0)
===================================================================
--- grnci_test.go    2016-02-11 13:32:46 +0900 (0656200)
+++ grnci_test.go    2016-02-11 13:33:38 +0900 (ba13ce8)
@@ -327,6 +327,15 @@ func TestLoadEx(t *testing.T) {
 	} else if cnt != 2 {
 		t.Fatalf("DB.LoadEx() failed: cnt = %d", cnt)
 	}
+
+	options := NewLoadOptions()
+	options.Columns = "_key,int,time,geo"
+	cnt, err = db.LoadEx("tbl3", recs, options)
+	if err != nil {
+		t.Fatalf("DB.LoadEx() failed: %v", err)
+	} else if cnt != 2 {
+		t.Fatalf("DB.LoadEx() failed: cnt = %d", cnt)
+	}
 }
 
 // TestSelect() tests DB.Select().
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index