mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
accounts/abi/bind: don't define link test case table as a package-private variable
This commit is contained in:
parent
7f301229bf
commit
6afe90dddd
1 changed files with 109 additions and 111 deletions
|
|
@ -205,7 +205,8 @@ func testLinkCase(tcInput linkTestCaseInput) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
var linkTestCases = []linkTestCaseInput{
|
||||
func TestContractLinking(t *testing.T) {
|
||||
for i, tc := range []linkTestCaseInput{
|
||||
// test simple contract without any dependencies or overrides
|
||||
{
|
||||
map[rune][]rune{
|
||||
|
|
@ -319,10 +320,7 @@ var linkTestCases = []linkTestCaseInput{
|
|||
map[rune]struct{}{
|
||||
'a': {}, 'b': {}, 'c': {}, 'd': {}, 'e': {}, 'f': {}, 'g': {}, 'h': {}, 'm': {}},
|
||||
},
|
||||
}
|
||||
|
||||
func TestContractLinking(t *testing.T) {
|
||||
for i, tc := range linkTestCases {
|
||||
} {
|
||||
if err := testLinkCase(tc); err != nil {
|
||||
t.Fatalf("test case %d failed: %v", i, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue