-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfunction-caller-main.case.json
More file actions
111 lines (111 loc) · 3.16 KB
/
function-caller-main.case.json
File metadata and controls
111 lines (111 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"contractType": "case::contract",
"description": {
"consumerName": "function caller",
"providerName": "function execution"
},
"metadata": {
"_case": {
"version": "case-internal-tests",
"hash": "bcac4a1c1076fb91328174d3918337af1b4d3722b34773eea9a358900c387530"
}
},
"matcherLookup": {
"matcher:returns null": {
"_case:matcher:type": "_case:FunctionResultMatcher",
"success": null
},
"matcher:An invocation of zeroArgs()": {
"_case:matcher:type": "_case:FunctionArgumentsMatcher",
"arguments": []
},
"matcher:returns \"example2\"": {
"_case:matcher:type": "_case:FunctionResultMatcher",
"success": "example2"
},
"matcher:An invocation of concatenate( \"example\", 2 )": {
"_case:matcher:type": "_case:FunctionArgumentsMatcher",
"arguments": [
"example",
2
]
}
},
"examples": [
{
"states": [],
"mock": {
"_case:mock:type": "_case:MockFunctionExecution",
"_case:run:context:setup": {
"read": {
"type": "_case:MockFunctionCaller",
"stateVariables": "state",
"triggers": "generated"
},
"write": {
"type": "_case:MockFunctionExecution",
"stateVariables": "default",
"triggers": "provided"
}
},
"request": {
"_case:matcher:type": "_case:Lookup",
"_case:matcher:uniqueName": "An invocation of zeroArgs()",
"_case:matcher:child": {
"_case:matcher:type": "_case:FunctionArgumentsMatcher",
"arguments": []
}
},
"response": {
"_case:matcher:type": "_case:Lookup",
"_case:matcher:uniqueName": "returns null",
"_case:matcher:child": {
"_case:matcher:type": "_case:FunctionResultMatcher",
"success": null
}
},
"functionName": "zeroArgs"
},
"result": "VERIFIED"
},
{
"states": [],
"mock": {
"_case:mock:type": "_case:MockFunctionExecution",
"_case:run:context:setup": {
"read": {
"type": "_case:MockFunctionCaller",
"stateVariables": "state",
"triggers": "generated"
},
"write": {
"type": "_case:MockFunctionExecution",
"stateVariables": "default",
"triggers": "provided"
}
},
"request": {
"_case:matcher:type": "_case:Lookup",
"_case:matcher:uniqueName": "An invocation of concatenate( \"example\", 2 )",
"_case:matcher:child": {
"_case:matcher:type": "_case:FunctionArgumentsMatcher",
"arguments": [
"example",
2
]
}
},
"response": {
"_case:matcher:type": "_case:Lookup",
"_case:matcher:uniqueName": "returns \"example2\"",
"_case:matcher:child": {
"_case:matcher:type": "_case:FunctionResultMatcher",
"success": "example2"
}
},
"functionName": "concatenate"
},
"result": "VERIFIED"
}
]
}