Skip to content

Commit 7816944

Browse files
chore: fix some function names (#430)
Signed-off-by: highcloudwind <[email protected].>
1 parent 4e56d69 commit 7816944

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

chain/test_chain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ func TestChainCloning(t *testing.T) {
539539
})
540540
}
541541

542-
// TestCallSequenceReplayMatchSimple creates a TestChain, sends some messages to it, then creates another chain which
542+
// TestChainCallSequenceReplayMatchSimple creates a TestChain, sends some messages to it, then creates another chain which
543543
// it replays the same sequence on. It ensures that the ending state is the same.
544544
// Note: this does not set block timestamps or other data that might be non-deterministic.
545545
// This does not test replaying with a previous call sequence with different timestamps, etc. It expects the TestChain

fuzzing/calls/call_sequence_execution.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func ExecuteCallSequence(chain *chain.TestChain, callSequence CallSequence) (Cal
169169
return ExecuteCallSequenceIteratively(chain, fetchElementFunc, nil)
170170
}
171171

172-
// ExecuteCallSequenceWithTracer attaches an executiontracer.ExecutionTracer to ExecuteCallSequenceIteratively and attaches execution traces to the call sequence elements.
172+
// ExecuteCallSequenceWithExecutionTracer attaches an executiontracer.ExecutionTracer to ExecuteCallSequenceIteratively and attaches execution traces to the call sequence elements.
173173
func ExecuteCallSequenceWithExecutionTracer(testChain *chain.TestChain, contractDefinitions contracts.Contracts, callSequence CallSequence, verboseTracing bool) (CallSequence, error) {
174174
// Create a new execution tracer
175175
executionTracer := executiontracer.NewExecutionTracer(contractDefinitions, testChain.CheatCodeContracts())

fuzzing/corpus/corpus_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func getMockSimpleCorpus(minSequences int, maxSequences, minBlocks int, maxBlock
3131
return corpus, nil
3232
}
3333

34-
// getMockSimpleCorpusEntry creates a mock CorpusCallSequence with numBlocks blocks for testing
34+
// getMockCallSequence creates a mock CorpusCallSequence with numBlocks blocks for testing
3535
func getMockCallSequence(size int) calls.CallSequence {
3636
cs := make(calls.CallSequence, size)
3737
for i := 0; i < size; i++ {
@@ -40,7 +40,7 @@ func getMockCallSequence(size int) calls.CallSequence {
4040
return cs
4141
}
4242

43-
// getMockSimpleBlockBlock creates a mock CorpusBlock with numTransactions transactions and receipts for testing
43+
// getMockCallSequenceElement creates a mock CorpusBlock with numTransactions transactions and receipts for testing
4444
func getMockCallSequenceElement() *calls.CallSequenceElement {
4545
return &calls.CallSequenceElement{
4646
Contract: nil,

fuzzing/fuzzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ func TestDeploymentsWithPayableConstructors(t *testing.T) {
444444
})
445445
}
446446

447-
// TestDeploymentsInnerDeployments runs a test to ensure dynamically deployed contracts are detected by the Fuzzer and
447+
// TestDeploymentsSelfDestruct runs a test to ensure dynamically deployed contracts are detected by the Fuzzer and
448448
// their properties are tested appropriately.
449449
func TestDeploymentsSelfDestruct(t *testing.T) {
450450
// These contracts provide functions to deploy inner contracts which have properties that will produce a failure.

0 commit comments

Comments
 (0)