clean up the test suite

by removing test wrappers that are no longer used and renaming a helper
file that had a name starting with the "test_" prefix
This commit is contained in:
Ștefan Talpalaru 2019-02-14 23:40:23 +01:00 committed by zah
parent 95b93eb5aa
commit 2864d8ce21
9 changed files with 5 additions and 20 deletions

View File

@ -1,4 +0,0 @@
import
testecies, testauth, testcrypt, tshh,
les/test_flow_control

View File

@ -1,3 +0,0 @@
import
test_api_usage, test_object_serialization, test_json_suite

View File

@ -1,8 +0,0 @@
import
test_binaries_utils, test_bin_trie,
test_branches_utils, examples,
test_hexary_trie, test_json_suite,
test_sparse_binary_trie,
test_storage_backends,
test_caching_db_backend

View File

@ -1,7 +1,7 @@
import import
unittest, random, unittest, random,
eth/trie/[trie_defs, db, binary], eth/trie/[trie_defs, db, binary],
test_utils ./testutils
suite "binary trie": suite "binary trie":

View File

@ -2,7 +2,7 @@ import
unittest, strutils, unittest, strutils,
ranges/bitranges, eth/rlp/types, nimcrypto/[keccak, hash], ranges/bitranges, eth/rlp/types, nimcrypto/[keccak, hash],
eth/trie/[binaries, trie_utils], eth/trie/[binaries, trie_utils],
test_utils ./testutils
proc parseBitVector(x: string): BitRange = proc parseBitVector(x: string): BitRange =
result = genBitVec(x.len) result = genBitVec(x.len)

View File

@ -1,7 +1,7 @@
import import
unittest, strutils, sequtils, os, unittest, strutils, sequtils, os,
ranges/typedranges, eth/trie/[hexary, db, trie_defs], nimcrypto/utils, ranges/typedranges, eth/trie/[hexary, db, trie_defs], nimcrypto/utils,
test_utils, algorithm, eth/rlp/types as rlpTypes, random ./testutils, algorithm, eth/rlp/types as rlpTypes, random
template put(t: HexaryTrie|SecureHexaryTrie, key, val: string) = template put(t: HexaryTrie|SecureHexaryTrie, key, val: string) =
t.put(key.toBytesRange, val.toBytesRange) t.put(key.toBytesRange, val.toBytesRange)

View File

@ -2,7 +2,7 @@ import
os, json, tables, sequtils, strutils, algorithm, os, json, tables, sequtils, strutils, algorithm,
eth/rlp/types, nimcrypto/utils, eth/rlp/types, nimcrypto/utils,
eth/trie/[trie_defs, db, hexary], eth/trie/[trie_defs, db, hexary],
test_utils ./testutils
proc `==`(lhs: JsonNode, rhs: string): bool = proc `==`(lhs: JsonNode, rhs: string): bool =
lhs.kind == JString and lhs.str == rhs lhs.kind == JString and lhs.str == rhs

View File

@ -1,7 +1,7 @@
import import
unittest, random, unittest, random,
eth/trie/[trie_defs, db, sparse_binary, sparse_proofs], eth/trie/[trie_defs, db, sparse_binary, sparse_proofs],
test_utils ./testutils
suite "sparse binary trie": suite "sparse binary trie":
randomize() randomize()