Skip to content

Commit

Permalink
fix(redis): 删除语法错误的test代码 TencentBlueKing#9308
Browse files Browse the repository at this point in the history
  • Loading branch information
cycker authored and zhangzhw8 committed Feb 14, 2025
1 parent ed11c8f commit 5ac9e37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 59 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import (
"testing"
)

// TestCliFormatReplyTTY0 tests the FormatReplyTTY function with different input types.
func TestCliFormatReplyTTY0(t *testing.T) {
o := FormatReplyTTY(false, int64(3), "")
o := FormatReplyTTY(false, int64(3), "", false)
t.Log("\n|\n" + o)

o = FormatReplyTTY(false, "string", "")
o = FormatReplyTTY(false, "string", "", false)
t.Log("\n|\n" + o)

o = FormatReplyTTY(true, "OK", "")
o = FormatReplyTTY(true, "OK", "", false)
t.Log("\n|\n" + o)
o = FormatReplyTTY(true, make([]interface{}, 0), "")
o = FormatReplyTTY(true, make([]interface{}, 0), "", false)
t.Log("\n|\n" + o)
}

Expand All @@ -24,7 +25,7 @@ func TestCliFormatReplyTTY(t *testing.T) {
interface2 = append(interface2, strs[i])
}

o := FormatReplyTTY(false, interface2, "")
o := FormatReplyTTY(false, interface2, "", false)
t.Log("\n|\n" + o)
}

Expand All @@ -40,7 +41,7 @@ func TestCliFormatReplyTTY2(t *testing.T) {
}
interface1 = append(interface1, interface2, interface3)

o := FormatReplyTTY(false, interface1, "")
o := FormatReplyTTY(false, interface1, "", false)
t.Log("\n|\n" + o)
}

Expand All @@ -60,6 +61,6 @@ func TestCliFormatReplyTTY3(t *testing.T) {
interface1 = append(interface1, interface2)
interface1 = append(interface1, interface2)

o := FormatReplyTTY(false, interface1, "")
o := FormatReplyTTY(false, interface1, "", false)
t.Log("\n" + o)
}

0 comments on commit 5ac9e37

Please sign in to comment.