Skip to content

Commit 9a70c84

Browse files
author
U Anandhakumar
committed
Update:None type testcase
1 parent acc0c6e commit 9a70c84

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pkg/parser/parser_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,23 @@ func TestParseExpr(t *testing.T) {
198198
argString: "metric, key=true",
199199
},
200200
},
201+
{
202+
s: "None",
203+
e: &expr{target: "none", etype: EtNil},
204+
},
205+
{
206+
s: "asPercent(metric, None, 1)",
207+
e: &expr{
208+
target: "asPercent",
209+
etype: EtFunc,
210+
args: []*expr{
211+
{target: "metric"},
212+
{target: "none", etype: EtNil},
213+
{val: 1, etype: EtConst},
214+
},
215+
argString: "metric, None, 1",
216+
},
217+
},
201218
{
202219
s: "func(metric, key=1)",
203220
e: &expr{

0 commit comments

Comments
 (0)