[Groonga-commit] groonga/grnci at 84cbfb7 [master] Add a test for GrnInit and GrnFin

Zurück zum Archiv-Index

Susumu Yata null+****@clear*****
Thu Feb 18 13:08:21 JST 2016


Susumu Yata	2016-02-18 13:08:21 +0900 (Thu, 18 Feb 2016)

  New Revision: 84cbfb7356db2f4c9a8721d5fac210c229cb50f4
  https://github.com/groonga/grnci/commit/84cbfb7356db2f4c9a8721d5fac210c229cb50f4

  Message:
    Add a test for GrnInit and GrnFin
    
    GitHub: #32

  Modified files:
    grnci_test.go

  Modified: grnci_test.go (+10 -0)
===================================================================
--- grnci_test.go    2016-02-18 13:07:49 +0900 (1bdbcbe)
+++ grnci_test.go    2016-02-18 13:08:21 +0900 (8be21ae)
@@ -43,6 +43,16 @@ func removeTempDB(tb testing.TB, dirPath string, db *DB) {
 // Tests
 //
 
+// TestGrnInit() tests GrnInit() and GrnFin()
+func TestGrnInit(t *testing.T) {
+	if err := GrnInit(); err != nil {
+		t.Fatalf("GrnInit failed: %v", err)
+	}
+	if err := GrnFin(); err != nil {
+		t.Fatalf("GrnFin failed: %v", err)
+	}
+}
+
 // TestCreate() tests Create().
 func TestCreate(t *testing.T) {
 	dirPath, _, db := createTempDB(t)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index