plugeth/accounts/abi/bind
Eng Zer Jun 8d066f1f42
all: use T.TempDir to create temporary test directories (#24633)
This commit replaces ioutil.TempDir with t.TempDir in tests. The
directory created by t.TempDir is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using ioutil.TempDir
had to be removed manually by calling os.RemoveAll, which is omitted in
some tests. The error handling boilerplate e.g.

	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}

is also tedious, but t.TempDir handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-04-08 15:44:55 +02:00
..
backends accounts/abi/bind: improve WaitMined error handling (#24321) 2022-02-01 16:42:51 +01:00
auth.go accounts/abi/bind: set Context in TransactOpts (#23188) 2021-07-27 16:24:27 +02:00
backend.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2021-06-15 13:56:14 +03:00
base_test.go accounts/abi/bind: refactor transact method (#23719) 2021-10-13 22:59:11 +02:00
base.go accounts/abi/bind: fix error handling in baseFee query (#23781) 2021-10-21 11:40:35 +02:00
bind_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
bind.go accounts/abi/bind: correctly handle structs used only as constructor params (#23940) 2021-12-02 13:53:10 +01:00
template.go accounts/abi/bind: parse ABI only once, create metadata struct (#22583) 2021-07-27 16:22:21 +02:00
util_test.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2021-06-15 13:56:14 +03:00
util.go accounts/abi/bind: improve WaitMined error handling (#24321) 2022-02-01 16:42:51 +01:00