mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 03:26:36 +08:00
改进单元测试
This commit is contained in:
@@ -26,10 +26,19 @@ func TestPlainServerNames(t *testing.T) {
|
||||
Name: "world.com",
|
||||
SubNames: nil,
|
||||
},
|
||||
// duplicate
|
||||
{
|
||||
Name: "world.com",
|
||||
SubNames: nil,
|
||||
},
|
||||
{
|
||||
Name: "",
|
||||
SubNames: []string{"WoRld.com", "XYZ.com"},
|
||||
},
|
||||
{
|
||||
Name: "*.world.com",
|
||||
SubNames: nil,
|
||||
},
|
||||
}
|
||||
logs.PrintAsJSON(PlainServerNames(serverNames), t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user