Eng Zer Jun 8b0aaa5f86 
	
	
	test: use T.TempDir to create temporary test directory ( #21043 ) ... 
			A testing cleanup. 
This pull request replaces `os.MkdirTemp` with `t.TempDir`. We can use the `T.TempDir` function from the `testing` package to create temporary directory. The directory created by `T.TempDir` is automatically removed when the test and all its subtests complete. 
This saves us at least 2 lines (error check, and cleanup) on every instance, or in some cases adds cleanup that we forgot.
Reference: https://pkg.go.dev/testing#T.TempDir 
```go
func TestFoo(t *testing.T) {
	// before
	tmpDir, err := os.MkdirTemp("", "")
	require.NoError(t, err)
	defer os.RemoveAll(tmpDir)
	// now
	tmpDir := t.TempDir()
}
```
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com > 
		
	 
		2022-09-04 16:14:53 +01:00 
	 
	
	
	
		 
	
	
		
			
			
			
			
			
			2022-08-30 21:15:45 -05:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-08 01:05:52 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-11 21:50:14 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-22 13:38:34 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-03 15:36:18 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2021-10-24 22:12:43 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-08-06 16:13:11 +03:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:14:53 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2021-05-12 01:11:42 -04:00 
		 
	
		
			
			
			
			
			
			2022-05-03 21:46:28 +02:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2021-12-20 02:15:49 +00:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-23 17:08:26 -04:00 
		 
	
		
			
			
			
			
			
			2022-08-09 11:22:24 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:13:23 +01:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2019-03-27 17:33:00 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 13:47:56 +03:00 
		 
	
		
			
			
			
			
			
			2022-06-11 21:50:14 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-25 16:39:42 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-08 01:05:52 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-08 01:05:52 +08:00 
		 
	
		
			
			
			
			
			
			2022-07-16 08:10:02 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 13:47:56 +03:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-08-14 21:22:13 -04:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:14:53 +01:00 
		 
	
		
			
			
			
			
			
			2022-08-23 14:12:43 -04:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2019-03-27 17:33:00 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-16 23:47:44 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-16 23:47:44 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-09-04 16:14:53 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-03-30 03:13:41 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-16 23:47:44 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00 
		 
	
		
			
			
			
			
			
			2022-09-04 13:47:56 +03:00 
		 
	
		
			
			
			
			
			
			2022-08-30 21:15:45 -05:00 
		 
	
		
			
			
			
			
			
			2022-08-30 21:15:45 -05:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2021-10-17 20:47:12 +01:00 
		 
	
		
			
			
			
			
			
			2022-01-12 20:37:46 +00:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2020-12-17 22:00:47 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-01-20 18:46:10 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2021-05-10 03:27:03 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-05-02 23:22:45 +08:00 
		 
	
		
			
			
			
			
			
			2022-04-01 10:55:30 +08:00 
		 
	
		
			
			
			
			
			
			2020-05-14 18:55:43 -04:00 
		 
	
		
			
			
			
			
			
			2022-06-20 12:02:49 +02:00