Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/fuzzers/bitutil/bitutil_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package bitutil

import "testing"

func FuzzBitutil(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
3 changes: 0 additions & 3 deletions tests/fuzzers/bn256/bn256_fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.

//go:build gofuzz
// +build gofuzz

package bn256

import (
Expand Down
21 changes: 21 additions & 0 deletions tests/fuzzers/bn256/bn256_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package bn256

import "testing"

func FuzzBn256Add(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
FuzzAdd(data)
})
}

func FuzzBn256Mul(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
FuzzMul(data)
})
}

func FuzzBn256Pair(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
FuzzPair(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/difficulty/difficulty_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package difficulty

import "testing"

func FuzzDifficulty(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/keystore/keystore_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package keystore

import "testing"

func FuzzKeystore(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
2 changes: 1 addition & 1 deletion tests/fuzzers/les/les-fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func makechain() (bc *core.BlockChain, addrHashes, txHashes []common.Hash) {
)
nonce := uint64(i)
if i%4 == 0 {
tx, _ = types.SignTx(types.NewContractCreation(nonce, big.NewInt(0), 200000, big.NewInt(0), testContractCode), signer, bankKey)
tx, _ = types.SignTx(types.NewContractCreation(nonce, big.NewInt(0), 200000, big.NewInt(params.GWei), testContractCode), signer, bankKey)
addr = crypto.CreateAddress(bankAddr, nonce)
} else {
addr = common.BigToAddress(big.NewInt(int64(i)))
Expand Down
9 changes: 9 additions & 0 deletions tests/fuzzers/les/les_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package les

import "testing"

func FuzzLes(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/rangeproof/rangeproof_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package rangeproof

import "testing"

func FuzzRangeproof(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/rlp/rlp_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package rlp

import "testing"

func FuzzRlp(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/runtime/runtime_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package runtime

import "testing"

func FuzzRuntime(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/stacktrie/stacktrie_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package stacktrie

import "testing"

func FuzzStacktrie(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/trie/trie_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package trie

import "testing"

func FuzzTrie(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/txfetcher/txfetcher_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package txfetcher

import "testing"

func FuzzTxfetcher(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
Fuzz(data)
})
}
9 changes: 9 additions & 0 deletions tests/fuzzers/vflux/vflux_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package vflux

import "testing"

func FuzzVfluxClientPool(f *testing.F) {
f.Fuzz(func(t *testing.T, data []byte) {
FuzzClientPool(data)
})
}