github.com/zuoyebang/bitalosdb@v1.1.1-0.20240516111551-79a8c4d8ce20/bitree/bdb/simulation_no_freelist_sync_test.go (about) 1 // Copyright 2021 The Bitalosdb author(hustxrb@163.com) and other contributors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package bdb_test 16 17 import ( 18 "testing" 19 20 "github.com/zuoyebang/bitalosdb/internal/options" 21 ) 22 23 func TestSimulateNoFreeListSync_1op_1p(t *testing.T) { 24 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 1, 1) 25 } 26 func TestSimulateNoFreeListSync_10op_1p(t *testing.T) { 27 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 10, 1) 28 } 29 func TestSimulateNoFreeListSync_100op_1p(t *testing.T) { 30 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 100, 1) 31 } 32 func TestSimulateNoFreeListSync_1000op_1p(t *testing.T) { 33 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 1000, 1) 34 } 35 func TestSimulateNoFreeListSync_10000op_1p(t *testing.T) { 36 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 10000, 1) 37 } 38 func TestSimulateNoFreeListSync_10op_10p(t *testing.T) { 39 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 10, 10) 40 } 41 func TestSimulateNoFreeListSync_100op_10p(t *testing.T) { 42 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 100, 10) 43 } 44 func TestSimulateNoFreeListSync_1000op_10p(t *testing.T) { 45 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 1000, 10) 46 } 47 func TestSimulateNoFreeListSync_10000op_10p(t *testing.T) { 48 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 10000, 10) 49 } 50 func TestSimulateNoFreeListSync_100op_100p(t *testing.T) { 51 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 100, 100) 52 } 53 func TestSimulateNoFreeListSync_1000op_100p(t *testing.T) { 54 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 1000, 100) 55 } 56 func TestSimulateNoFreeListSync_10000op_100p(t *testing.T) { 57 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 10000, 100) 58 } 59 func TestSimulateNoFreeListSync_10000op_1000p(t *testing.T) { 60 testSimulate(t, &options.BdbOptions{NoFreelistSync: true}, 8, 10000, 1000) 61 }