mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 15:03:45 +00:00
reenable TestBindingV2ConvertedV1Tests
This commit is contained in:
parent
9dd006f4e0
commit
c7ff6488d6
1 changed files with 8 additions and 10 deletions
|
|
@ -6,7 +6,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/accounts/abi"
|
"github.com/ethereum/go-ethereum/accounts/abi"
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -345,20 +344,19 @@ func TestBindingV2ConvertedV1Tests(t *testing.T) {
|
||||||
|
|
||||||
// TODO: remove these before merging abigen2 PR. these are for convenience if I need to regenerate the converted bindings or add a new one.
|
// TODO: remove these before merging abigen2 PR. these are for convenience if I need to regenerate the converted bindings or add a new one.
|
||||||
|
|
||||||
if err := os.WriteFile(fmt.Sprintf("convertedv1bindtests/%s.go", strings.ToLower(tc.name)), []byte(code), 0666); err != nil {
|
/*
|
||||||
t.Fatalf("err writing expected output to file: %v\n", err)
|
if err := os.WriteFile(fmt.Sprintf("convertedv1bindtests/%s.go", strings.ToLower(tc.name)), []byte(code), 0666); err != nil {
|
||||||
}
|
t.Fatalf("err writing expected output to file: %v\n", err)
|
||||||
|
}*/
|
||||||
/*
|
/*
|
||||||
fmt.Printf("//go:embed v2/internal/convertedv1bindtests/%s.go\n", strings.ToLower(tc.name))
|
fmt.Printf("//go:embed v2/internal/convertedv1bindtests/%s.go\n", strings.ToLower(tc.name))
|
||||||
fmt.Printf("var v1TestBinding%s string\n", tc.name)
|
fmt.Printf("var v1TestBinding%s string\n", tc.name)
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
*/
|
*/
|
||||||
/*
|
if code != tc.expectedBindings {
|
||||||
if code != tc.expectedBindings {
|
//t.Fatalf("name mismatch for %s", tc.name)
|
||||||
//t.Fatalf("name mismatch for %s", tc.name)
|
t.Fatalf("'%s'\n!=\n'%s'\n", code, tc.expectedBindings)
|
||||||
t.Fatalf("'%s'\n!=\n'%s'\n", code, tc.expectedBindings)
|
}
|
||||||
}
|
|
||||||
*/
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue