[Groonga-commit] groonga/grngo at 0211c70 [master] Remove duplicate tests.

Back to archive index

susumu.yata null+****@clear*****
Thu Jul 30 11:01:15 JST 2015


susumu.yata	2015-07-30 11:01:15 +0900 (Thu, 30 Jul 2015)

  New Revision: 0211c705337bcb44f5660a52aca89829af96f44e
  https://github.com/groonga/grngo/commit/0211c705337bcb44f5660a52aca89829af96f44e

  Message:
    Remove duplicate tests.

  Modified files:
    grngo_test.go

  Modified: grngo_test.go (+0 -79)
===================================================================
--- grngo_test.go    2015-07-30 10:57:19 +0900 (0233dc9)
+++ grngo_test.go    2015-07-30 11:01:15 +0900 (ef95ccd)
@@ -526,85 +526,6 @@ func TestDBCreateTableWithWGS84GeoPointRefValue(t *testing.T) {
 	testDBCreateTableWithRefValue(t, "WGS84GeoPoint")
 }
 
-func testTableInsertRow(t *testing.T, keyType string) {
-	options := NewTableOptions()
-	options.KeyType = keyType
-	dirPath, _, db, table := createTempTable(t, "Table", options)
-	defer removeTempDB(t, dirPath, db)
-
-	count := 0
-	for i := 0; i < 100; i++ {
-		inserted, _, err := table.InsertRow(generateRandomKey(keyType))
-		if err != nil {
-			t.Fatalf("Table.InsertRow() failed: %v", err)
-		}
-		if inserted {
-			count++
-		}
-	}
-	t.Logf("keyType = <%s>, count = %d", keyType, count)
-}
-
-func TestTableInsertRowWithoutKey(t *testing.T) {
-	testTableInsertRow(t, "")
-}
-
-func TestTableInsertRowWithBoolKey(t *testing.T) {
-	testTableInsertRow(t, "Bool")
-}
-
-func TestTableInsertRowWithInt8Key(t *testing.T) {
-	testTableInsertRow(t, "Int8")
-}
-
-func TestTableInsertRowWithInt16Key(t *testing.T) {
-	testTableInsertRow(t, "Int16")
-}
-
-func TestTableInsertRowWithInt32Key(t *testing.T) {
-	testTableInsertRow(t, "Int32")
-}
-
-func TestTableInsertRowWithInt64Key(t *testing.T) {
-	testTableInsertRow(t, "Int64")
-}
-
-func TestTableInsertRowWithUInt8Key(t *testing.T) {
-	testTableInsertRow(t, "UInt8")
-}
-
-func TestTableInsertRowWithUInt16Key(t *testing.T) {
-	testTableInsertRow(t, "UInt16")
-}
-
-func TestTableInsertRowWithUInt32Key(t *testing.T) {
-	testTableInsertRow(t, "UInt32")
-}
-
-func TestTableInsertRowWithUInt64Key(t *testing.T) {
-	testTableInsertRow(t, "UInt64")
-}
-
-func TestTableInsertRowWithFloatKey(t *testing.T) {
-	testTableInsertRow(t, "Float")
-}
-
-func TestTableInsertRowWithTimeKey(t *testing.T) {
-	testTableInsertRow(t, "Time")
-}
-
-func TestTableInsertRowWithShortTextKey(t *testing.T) {
-	testTableInsertRow(t, "ShortText")
-}
-
-func TestTableInsertRowWithTokyoGeoPointKey(t *testing.T) {
-	testTableInsertRow(t, "TokyoGeoPoint")
-}
-
-func TestTableInsertRowWithWGS84GeoPointKey(t *testing.T) {
-	testTableInsertRow(t, "WGS84GeoPoint")
-}
-
 func testTableCreateColumn(t *testing.T, valueType string) {
 	dirPath, _, db, table, _ :=
 		createTempColumn(t, "Table", nil, "Value", valueType, nil)
-------------- next part --------------
HTML����������������������������...
下载 



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