mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-13 03:25:20 +00:00
add sim test comments
This commit is contained in:
parent
11c1d1b369
commit
154af93476
@ -329,6 +329,7 @@ func BenchmarkFullAppSimulation(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestFullAppSimulation runs a standard simulation of the app, modified by cmd line flag values.
|
||||
func TestFullAppSimulation(t *testing.T) {
|
||||
if !simapp.FlagEnabledValue {
|
||||
t.Skip("skipping application simulation")
|
||||
@ -383,6 +384,7 @@ func TestFullAppSimulation(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestAppImportExport runs a simulation, exports the state, imports it, then checks the db state is same after import as it was before export.
|
||||
func TestAppImportExport(t *testing.T) {
|
||||
if !simapp.FlagEnabledValue {
|
||||
t.Skip("skipping application import/export simulation")
|
||||
@ -500,6 +502,7 @@ func TestAppImportExport(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestAppSimulationAfterImport runs a simulation, exports it, imports it and runs another simulation.
|
||||
func TestAppSimulationAfterImport(t *testing.T) {
|
||||
if !simapp.FlagEnabledValue {
|
||||
t.Skip("skipping application simulation after import")
|
||||
@ -594,6 +597,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
|
||||
|
||||
// TODO: Make another test for the fuzzer itself, which just has noOp txs
|
||||
// and doesn't depend on the application.
|
||||
// TestAppStateDeterminism runs several sims with the same seed and checks the states are equal.
|
||||
func TestAppStateDeterminism(t *testing.T) {
|
||||
if !simapp.FlagEnabledValue {
|
||||
t.Skip("skipping application simulation")
|
||||
|
Loading…
Reference in New Issue
Block a user