mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-31 01:35:56 +08:00
validators: actor joined by more tests
This commit is contained in:
@@ -79,6 +79,28 @@ func TestJoinedByActor(t *testing.T) {
|
||||
ValueWant: valsWant,
|
||||
},
|
||||
},
|
||||
{
|
||||
sep: ",",
|
||||
ignoreEmpty: true,
|
||||
C: C{
|
||||
Name: "good in (nothing)",
|
||||
In: `{"s": ""}`,
|
||||
Out: `{"s": ""}`,
|
||||
ValueWant: []interface{}{},
|
||||
},
|
||||
},
|
||||
{
|
||||
sep: ",",
|
||||
C: C{
|
||||
Name: "good in (0.0.0.0/32)",
|
||||
In: `{"s": ""}`,
|
||||
Out: `{"s": ""}`,
|
||||
ValueWant: []interface{}{func() *netutils.IPV4Prefix {
|
||||
p, _ := netutils.NewIPV4Prefix("0.0.0.0/32")
|
||||
return &p
|
||||
}()},
|
||||
},
|
||||
},
|
||||
{
|
||||
sep: ",",
|
||||
trimSpace: true,
|
||||
|
||||
Reference in New Issue
Block a user