plugeth/mobile
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
..
accounts.go mobile: don't retain transient []byte in CallMsg.SetData (#14804) 2017-07-17 15:25:46 +03:00
android_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
big.go mobile: added constructor for big int (#21597) 2020-09-28 14:12:08 +02:00
bind.go accounts/abi/bind: allow specifying signer on transactOpts (#21356) 2020-12-08 14:44:56 +01:00
common.go mobile: better api for java users (#21580) 2020-09-21 16:33:35 +02:00
context.go mobile: fix comment typos (#19741) 2019-06-20 11:38:31 +02:00
discover.go les: switch to new discv5 (#21940) 2021-01-26 21:41:35 +01:00
doc.go all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00
ethclient.go mobile: add whisper client (#15922) 2018-09-03 17:30:47 +02:00
ethereum.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
geth_android.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
geth_ios.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
geth_other.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
geth.go mobile: remove deprecated Stop function (#24369) 2022-03-09 00:42:14 +01:00
init.go all: disable log message colors outside of geth 2017-02-27 15:33:12 +01:00
interface_test.go mobile: fix mobile interface (#19180) 2019-06-27 11:48:13 +03:00
interface.go mobile: fix mobile interface (#19180) 2019-06-27 11:48:13 +03:00
logger.go all: disable log message colors outside of geth 2017-02-27 15:33:12 +01:00
p2p.go all: update license information 2017-04-14 10:29:00 +02:00
params.go cmd/geth: add support for sepolia testnet (#23730) 2021-11-08 13:06:01 +02:00
primitives.go mobile: fix mobile interface (#19180) 2019-06-27 11:48:13 +03:00
types.go mobile: remove deprecated code (#23357) 2021-08-10 11:40:54 +03:00
vm.go core/vm: move Log to core/types 2017-01-06 14:15:22 +01:00