diff options
| author | Shulhan <ms@kilabit.info> | 2021-03-14 22:37:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-03-14 22:40:05 +0700 |
| commit | e7552ad0189f761875bc1c2ca3dd716d43a01e0d (patch) | |
| tree | fd68ec29d23fb9a807a7382088020e3b17d446fd /lib/os/exec/exec_test.go | |
| parent | 882727d89c8e7f9b9761009ccdca1af8c18d0a30 (diff) | |
| download | pakakeh.go-e7552ad0189f761875bc1c2ca3dd716d43a01e0d.tar.xz | |
all: refactoring the test.Assert and test.AssertBench signature
Previously, the test.Assert and test.AssertBench functions has the
boolean parameter to print the stack trace of test in case its not equal.
Since this parameter is not mandatory and its usually always set to
"true", we remove them from function signature to simplify the call
to Assert and AssertBench.
Diffstat (limited to 'lib/os/exec/exec_test.go')
| -rw-r--r-- | lib/os/exec/exec_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/os/exec/exec_test.go b/lib/os/exec/exec_test.go index ad0e82b0..90771dbb 100644 --- a/lib/os/exec/exec_test.go +++ b/lib/os/exec/exec_test.go @@ -46,7 +46,7 @@ func TestParseCommandArg(t *testing.T) { for _, c := range cases { t.Logf(c.in) gotCmd, gotArgs := ParseCommandArgs(c.in) - test.Assert(t, "cmd", c.expCmd, gotCmd, true) - test.Assert(t, "args", c.expArgs, gotArgs, true) + test.Assert(t, "cmd", c.expCmd, gotCmd) + test.Assert(t, "args", c.expArgs, gotArgs) } } |
