susumu.yata
null+****@clear*****
Wed Jul 29 22:05:26 JST 2015
susumu.yata 2015-07-29 22:05:26 +0900 (Wed, 29 Jul 2015) New Revision: 2c13d0a289ddb33390459e593ab4596e85942bb3 https://github.com/groonga/grngo/commit/2c13d0a289ddb33390459e593ab4596e85942bb3 Message: Remove old tests. Modified files: grngo_test.go Modified: grngo_test.go (+0 -95) =================================================================== --- grngo_test.go 2015-07-29 22:03:42 +0900 (e26a347) +++ grngo_test.go 2015-07-29 22:05:26 +0900 (20b2d2e) @@ -395,101 +395,6 @@ func TestDBRefresh(t *testing.T) { } } -func TestDBCreateTableWithoutKeyValue(t *testing.T) { - dirPath, _, db, _ := createTempTable(t, "Table", nil) - defer removeTempDB(t, dirPath, db) -} - -func testDBCreateTableWithKey(t *testing.T, keyType string) { - options := NewTableOptions() - options.KeyType = keyType - dirPath, _, db, _ := createTempTable(t, "Table", options) - defer removeTempDB(t, dirPath, db) -} - -func TestDBCreateTableWithBoolKey(t *testing.T) { - testDBCreateTableWithKey(t, "Bool") -} - -func TestDBCreateTableWithIntKey(t *testing.T) { - testDBCreateTableWithKey(t, "Int64") -} - -func TestDBCreateTableWithFloatKey(t *testing.T) { - testDBCreateTableWithKey(t, "Float") -} - -func TestDBCreateTableWithShortTextKey(t *testing.T) { - testDBCreateTableWithKey(t, "ShortText") -} - -func TestDBCreateTableWithTokyoGeoPointKey(t *testing.T) { - testDBCreateTableWithKey(t, "TokyoGeoPoint") -} - -func TestDBCreateTableWithWGS84GeoPointKey(t *testing.T) { - testDBCreateTableWithKey(t, "WGS84GeoPoint") -} - -func testDBCreateTableWithValue(t *testing.T, valueType string) { - options := NewTableOptions() - options.ValueType = valueType - dirPath, _, db, _ := createTempTable(t, "Table", options) - defer removeTempDB(t, dirPath, db) -} - -func TestDBCreateTableWithBoolValue(t *testing.T) { - testDBCreateTableWithValue(t, "Bool") -} - -func TestDBCreateTableWithInt8Value(t *testing.T) { - testDBCreateTableWithValue(t, "Int8") -} - -func TestDBCreateTableWithInt16Value(t *testing.T) { - testDBCreateTableWithValue(t, "Int16") -} - -func TestDBCreateTableWithInt32Value(t *testing.T) { - testDBCreateTableWithValue(t, "Int32") -} - -func TestDBCreateTableWithInt64Value(t *testing.T) { - testDBCreateTableWithValue(t, "Int64") -} - -func TestDBCreateTableWithUInt8Value(t *testing.T) { - testDBCreateTableWithValue(t, "UInt8") -} - -func TestDBCreateTableWithUInt16Value(t *testing.T) { - testDBCreateTableWithValue(t, "UInt16") -} - -func TestDBCreateTableWithUInt32Value(t *testing.T) { - testDBCreateTableWithValue(t, "UInt32") -} - -func TestDBCreateTableWithUInt64Value(t *testing.T) { - testDBCreateTableWithValue(t, "UInt64") -} - -func TestDBCreateTableWithFloatValue(t *testing.T) { - testDBCreateTableWithValue(t, "Float") -} - -func TestDBCreateTableWithTimeValue(t *testing.T) { - testDBCreateTableWithValue(t, "Time") -} - -func TestDBCreateTableWithTokyoGeoPointValue(t *testing.T) { - testDBCreateTableWithValue(t, "TokyoGeoPoint") -} - -func TestDBCreateTableWithWGS84GeoPointValue(t *testing.T) { - testDBCreateTableWithValue(t, "WGS84GeoPoint") -} - func testDBCreateTableWithRefKey(t *testing.T, keyType string) { options := NewTableOptions() options.KeyType = keyType -------------- next part -------------- HTML����������������������������...Download