crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
1c3fcbe5
ROOT
/
go
/
performance
/
import_benchmarker
/
testdef.go
Search
History
701 lines
|
ISO-8859-1
|
15 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
defaultBatchSize
TestDef
Tests
:
[]ImportTest
Opts
:
*Opts
Opts
Seed
:
int
ImportTest
Name
:
string
Repos
:
[]driver.TestRepo
Tables
:
[]Table
Skip
:
string
Results
:
*ImportResults
files
:
map[uint64]*os.File
tmpdir
:
string
Table
Name
:
string
Schema
:
string
Rows
:
int
Fmt
:
string
Shuffle
:
bool
Batch
:
bool
TargetTable
:
string
ParseTestsFile
(path string)
:
(TestDef, error)
MakeRepo
(rs driver.RepoStore, r driver.TestRepo)
:
(driver.Repo, error)
MakeServer
(dc driver.DoltCmdable, s *driver.Server)
:
(*driver.SqlServer, error)
ImportResult
detail
:
string
server
:
string
test
:
string
time
:
float64
rows
:
int
fmt
:
string
sorted
:
bool
batch
:
bool
String
()
:
string
ImportResults
res
:
[]ImportResult
newServer
(u driver.DoltUser, r driver.TestRepo)
:
(*driver.SqlServer, error)
modifyServerForImport
(db *sql.DB)
:
error
ScanQueries
(data []byte, atEOF bool)
:
(advance int, token []byte, err error)
dropCR
(data []byte)
:
[]byte
newBatch
(name string, rows []string)
:
string
tableKey
(t Table)
:
(uint64, error)
parseTableAndSchema
(q string)
:
(string, []string, []sql2.Type)
genRows
(types []sql2.Type, n int, fmt string, cb func(r []string))
genValue
(i int, typ sql2.Type)
:
string
RunTestsFile
(t *testing.T, path string)
*Table
UnmarshalYAML
(unmarshal func(interface{}) error)
:
error
*ImportResults
append
(ir ImportResult)
String
()
:
string
SqlDump
()
:
string
*ImportTest
InitWithTmpDir
(s string)
Run
(t *testing.T)
RunExternalServerTests
(repoName string, s *driver.ExternalServer)
:
error
RunSqlServerTests
(repo driver.TestRepo, user driver.DoltUser)
:
error
benchLoadData
(repoName string, db *sql.DB, tab Table, f *os.File)
:
error
benchSql
(repoName string, db *sql.DB, tab Table, f *os.File)
:
error
RunCliTests
(r driver.TestRepo, user driver.DoltUser)
:
error
IterImportTables
(tables []Table, cb func(t Table, f *os.File) error)
:
error
All occurrences
Please wait...
Page is in error, reload to recover