Commit c16a05c
authored
tests: refactoring (cosmos#198)
* test refactoring
evmd as separate package
- we can make sure more clean dependency: only evmd -> evmd allows. not vice versa.
test re-structuring
- tests using network + evmd moved into evm/tests/integration
- test file names are changed from *_test.go to test_*.go, so any client chains can leverage cosmos/evm's test suites with their own application
refactoring
- all integration tests in evm uses EvmApp interface. so it allows other client application can leverage cosmos/evm's test suites.
- evmd implements methods of EvmApp
- separate Erc20Keeper interface to avoid cyclic import between erc20/keeper and precompiles/erc20
- change backend member variables to public. this is for making testing refactoring easier. if there are some security concern, we should consider introducing getters.
removed un-used files
* upstream merge and resolve conflicts
* fix lints & ci
removed already migrated test also
* fix ci
* fix lint issues
* fix ginkgo issues and update testing ci, makefile
* gci formatted and re-organize authz test
* add missed test case
* fix ci issue
* erc20 cyclic dependencies resolved
* chore: typo
* chore: package name
* chore: test convention
* chore: test convention
* chore: align convention
* un-do un-necessary change
pb files should not be touched
* re-organize ibc testing dir and make ibc testsing using EvmApp, not evmd
* fix Makefile
* change go mod name to github.com/cosmos/evm/evmd
* merge main & resolve conflicts
* fix lint1 parent f486443 commit c16a05c
File tree
336 files changed
+25808
-22727
lines changed- .github/workflows
- ante
- cosmos
- evm
- testutils
- cmd/evmd
- cmd
- ethereum/eip712
- evmd
- ante
- eips
- tests
- ibc
- integration
- ante
- eips
- precompiles
- bank
- bech32
- distribution
- erc20
- evidence
- gov
- p256
- slashing
- staking
- werc20
- testutil
- precompiles
- bank
- distribution
- erc20
- gov
- p256
- staking
- testutil/contracts
- werc20
- rpc/backend
- tests/integration
- ante
- eip712
- eips
- indexer
- ledger
- precompiles
- bank
- bech32
- distribution
- erc20
- evidence
- gov
- p256
- slashing
- staking
- werc20
- rpc/backend
- testutil
- wallets
- x
- erc20
- feemarket
- ibc
- callbacks
- precisebank
- vm
- testutil
- ibc
- integration
- base
- factory
- grpc
- network
- evm
- factory
- grpc
- network
- utils
- os
- network
- utils
- keyring
- tx
- types
- utils
- wallets/usbwallet
- x
- erc20
- keeper
- types
- v2
- feemarket/keeper
- ibc/callbacks/keeper
- precisebank/keeper
- vm
- ante
- keeper
- statedb
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
336 files changed
+25808
-22727
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 113 | | |
117 | 114 | | |
| 115 | + | |
118 | 116 | | |
119 | 117 | | |
120 | | - | |
121 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
131 | 144 | | |
132 | 145 | | |
133 | 146 | | |
134 | 147 | | |
135 | 148 | | |
136 | | - | |
| 149 | + | |
137 | 150 | | |
138 | 151 | | |
139 | 152 | | |
| |||
0 commit comments