| 1 |
Matching: basic_reader_as_array: matches: |
| 2 |
Expected |
| 3 |
["foo bar","moo cow",""] |
| 4 |
to contain element matching |
| 5 |
{"contain-substring":"fox"} |
| 6 |
the transform chain was |
| 7 |
[{"to-array":{}}] |
| 8 |
the raw value was |
| 9 |
"foo bar\nmoo cow\n" |
| 10 |
Matching: test_array: matches: |
| 11 |
Expected |
| 12 |
["45","46","47"] |
| 13 |
to contain elements matching |
| 14 |
[{"contain-element":{"match-regexp":"5."}},"55",{"and":[{"ge":56},{"le":30}]}] |
| 15 |
the missing elements were |
| 16 |
[{"contain-element":{"match-regexp":"5."}},"55",{"and":[{"ge":56},{"le":30}]}] |
| 17 |
Matching: test_gjson_have_key_array: matches: |
| 18 |
Expected |
| 19 |
{"arr":[{"nested":"cow"},{"nested2":"moo"}]} |
| 20 |
to satisfy at least one of these matchers |
| 21 |
[{"have-key":"fail"}] |
| 22 |
the transform chain was |
| 23 |
[{"gjson":{"Path":"@this"}}] |
| 24 |
the raw value was |
| 25 |
"{\"arr\": [{\"nested\": \"cow\"}, {\"nested2\": \"moo\"}]}" |
| 26 |
Matching: test_gjson_invalid: matches: |
| 27 |
Error |
| 28 |
matchers.Gjson{Path:"@this"}: Invalid json |
| 29 |
the transform chain was |
| 30 |
[{"gjson":{"Path":"@this"}}] |
| 31 |
the raw value was |
| 32 |
"{\"arr\"" |
| 33 |
Matching: test_gjson_not_found: matches: |
| 34 |
Error |
| 35 |
matchers.Gjson{Path:"foo"}: Path not found: foo |
| 36 |
the transform chain was |
| 37 |
[{"gjson":{"Path":"foo"}}] |
| 38 |
the raw value was |
| 39 |
"{\"arr\": [{\"nested\": \"cow\"}, {\"nested2\": \"moo\"}]}" |
| 40 |
Matching: test_gjson_transform_nested_and: matches: |
| 41 |
Expected |
| 42 |
{"nested":"cow"} |
| 43 |
to have key matching |
| 44 |
"nope" |
| 45 |
the transform chain was |
| 46 |
[{"gjson":{"Path":"moo"}}] |
| 47 |
the raw value was |
| 48 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 49 |
Matching: test_gjson_transform_nested_count: matches: |
| 50 |
Expected |
| 51 |
15 |
| 52 |
to be numerically le |
| 53 |
10 |
| 54 |
the transform chain was |
| 55 |
[{"gjson":{"Path":"count"}},{"to-numeric":{}}] |
| 56 |
the raw value was |
| 57 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 58 |
Matching: test_gjson_transform_nested_prefix: matches: |
| 59 |
Expected |
| 60 |
"bar" |
| 61 |
to have prefix |
| 62 |
"x" |
| 63 |
diff |
| 64 |
--- test |
| 65 |
+++ actual |
| 66 |
@@ -1 +1 @@ |
| 67 |
-x |
| 68 |
+bar |
| 69 |
the transform chain was |
| 70 |
[{"gjson":{"Path":"foo"}}] |
| 71 |
the raw value was |
| 72 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 73 |
Matching: test_gjson_transform_nested_this: matches: |
| 74 |
Expected |
| 75 |
{"count":"15","foo":"bar","moo":{"nested":"cow"}} |
| 76 |
to have key matching |
| 77 |
"nope" |
| 78 |
the transform chain was |
| 79 |
[{"gjson":{"Path":"@this"}}] |
| 80 |
the raw value was |
| 81 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 82 |
Matching: test_gjson_transform_not_key: matches: |
| 83 |
Expected |
| 84 |
{"nested":"cow"} |
| 85 |
not to have key matching |
| 86 |
"nested" |
| 87 |
the transform chain was |
| 88 |
[{"gjson":{"Path":"moo"}}] |
| 89 |
the raw value was |
| 90 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 91 |
Matching: test_gjson_transform_simple: matches: |
| 92 |
Expected |
| 93 |
"cow" |
| 94 |
to equal |
| 95 |
"cowx" |
| 96 |
diff |
| 97 |
--- test |
| 98 |
+++ actual |
| 99 |
@@ -1 +1 @@ |
| 100 |
-cowx |
| 101 |
+cow |
| 102 |
the transform chain was |
| 103 |
[{"gjson":{"Path":"moo.nested"}}] |
| 104 |
the raw value was |
| 105 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 106 |
Matching: test_gjson_using_this_and_equal: matches: |
| 107 |
Expected |
| 108 |
{"baz":"bing","foo":"bar"} |
| 109 |
to equal |
| 110 |
{"baz":"bing","fox":"bar"} |
| 111 |
the transform chain was |
| 112 |
[{"gjson":{"Path":"@this"}}] |
| 113 |
the raw value was |
| 114 |
"{\"foo\": \"bar\", \"baz\": \"bing\"}" |
| 115 |
Matching: test_numeric_string: matches: |
| 116 |
Expected |
| 117 |
"128" |
| 118 |
to equal |
| 119 |
"129" |
| 120 |
diff |
| 121 |
--- test |
| 122 |
+++ actual |
| 123 |
@@ -1 +1 @@ |
| 124 |
-129 |
| 125 |
+128 |
| 126 |
the transform chain was |
| 127 |
[{"to-string":{}}] |
| 128 |
the raw value was |
| 129 |
128 |
| 130 |
Matching: test_reader_as_single_string: matches: |
| 131 |
Expected |
| 132 |
"cool" |
| 133 |
to equal |
| 134 |
"not-cool" |
| 135 |
diff |
| 136 |
--- test |
| 137 |
+++ actual |
| 138 |
@@ -1 +1 @@ |
| 139 |
-not-cool |
| 140 |
+cool |
| 141 |
Matching: test_reader_using_int_matchers: matches: |
| 142 |
Expected |
| 143 |
40 |
| 144 |
to be numerically le |
| 145 |
20 |
| 146 |
the transform chain was |
| 147 |
[{"to-numeric":{}}] |
| 148 |
the raw value was |
| 149 |
"40" |
| 150 |
Matching: test_reader_using_string_matchers: matches: |
| 151 |
Expected |
| 152 |
"foo bar\n15\nmoo cow\n" |
| 153 |
to have length |
| 154 |
15 |
| 155 |
Matching: test_string_float: matches: |
| 156 |
Expected |
| 157 |
128.3 |
| 158 |
to be numerically eq |
| 159 |
129.3 |
| 160 |
the transform chain was |
| 161 |
[{"to-numeric":{}}] |
| 162 |
the raw value was |
| 163 |
"128.3" |
| 164 |
Matching: test_string_numeric: matches: |
| 165 |
Expected |
| 166 |
128 |
| 167 |
to be numerically eq |
| 168 |
129 |
| 169 |
the transform chain was |
| 170 |
[{"to-numeric":{}}] |
| 171 |
the raw value was |
| 172 |
"128" |
| 173 |
|
| 174 |
|
| 175 |
Failures/Skipped: |
| 176 |
|
| 177 |
Matching: basic_reader_as_array: matches: |
| 178 |
Expected |
| 179 |
["foo bar","moo cow",""] |
| 180 |
to contain element matching |
| 181 |
{"contain-substring":"fox"} |
| 182 |
the transform chain was |
| 183 |
[{"to-array":{}}] |
| 184 |
the raw value was |
| 185 |
"foo bar\nmoo cow\n" |
| 186 |
|
| 187 |
Matching: test_array: matches: |
| 188 |
Expected |
| 189 |
["45","46","47"] |
| 190 |
to contain elements matching |
| 191 |
[{"contain-element":{"match-regexp":"5."}},"55",{"and":[{"ge":56},{"le":30}]}] |
| 192 |
the missing elements were |
| 193 |
[{"contain-element":{"match-regexp":"5."}},"55",{"and":[{"ge":56},{"le":30}]}] |
| 194 |
|
| 195 |
Matching: test_gjson_have_key_array: matches: |
| 196 |
Expected |
| 197 |
{"arr":[{"nested":"cow"},{"nested2":"moo"}]} |
| 198 |
to satisfy at least one of these matchers |
| 199 |
[{"have-key":"fail"}] |
| 200 |
the transform chain was |
| 201 |
[{"gjson":{"Path":"@this"}}] |
| 202 |
the raw value was |
| 203 |
"{\"arr\": [{\"nested\": \"cow\"}, {\"nested2\": \"moo\"}]}" |
| 204 |
|
| 205 |
Matching: test_gjson_invalid: matches: |
| 206 |
Error |
| 207 |
matchers.Gjson{Path:"@this"}: Invalid json |
| 208 |
the transform chain was |
| 209 |
[{"gjson":{"Path":"@this"}}] |
| 210 |
the raw value was |
| 211 |
"{\"arr\"" |
| 212 |
|
| 213 |
Matching: test_gjson_not_found: matches: |
| 214 |
Error |
| 215 |
matchers.Gjson{Path:"foo"}: Path not found: foo |
| 216 |
the transform chain was |
| 217 |
[{"gjson":{"Path":"foo"}}] |
| 218 |
the raw value was |
| 219 |
"{\"arr\": [{\"nested\": \"cow\"}, {\"nested2\": \"moo\"}]}" |
| 220 |
|
| 221 |
Matching: test_gjson_transform_nested_and: matches: |
| 222 |
Expected |
| 223 |
{"nested":"cow"} |
| 224 |
to have key matching |
| 225 |
"nope" |
| 226 |
the transform chain was |
| 227 |
[{"gjson":{"Path":"moo"}}] |
| 228 |
the raw value was |
| 229 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 230 |
|
| 231 |
Matching: test_gjson_transform_nested_count: matches: |
| 232 |
Expected |
| 233 |
15 |
| 234 |
to be numerically le |
| 235 |
10 |
| 236 |
the transform chain was |
| 237 |
[{"gjson":{"Path":"count"}},{"to-numeric":{}}] |
| 238 |
the raw value was |
| 239 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 240 |
|
| 241 |
Matching: test_gjson_transform_nested_prefix: matches: |
| 242 |
Expected |
| 243 |
"bar" |
| 244 |
to have prefix |
| 245 |
"x" |
| 246 |
diff |
| 247 |
--- test |
| 248 |
+++ actual |
| 249 |
@@ -1 +1 @@ |
| 250 |
-x |
| 251 |
+bar |
| 252 |
the transform chain was |
| 253 |
[{"gjson":{"Path":"foo"}}] |
| 254 |
the raw value was |
| 255 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 256 |
|
| 257 |
Matching: test_gjson_transform_nested_this: matches: |
| 258 |
Expected |
| 259 |
{"count":"15","foo":"bar","moo":{"nested":"cow"}} |
| 260 |
to have key matching |
| 261 |
"nope" |
| 262 |
the transform chain was |
| 263 |
[{"gjson":{"Path":"@this"}}] |
| 264 |
the raw value was |
| 265 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 266 |
|
| 267 |
Matching: test_gjson_transform_not_key: matches: |
| 268 |
Expected |
| 269 |
{"nested":"cow"} |
| 270 |
not to have key matching |
| 271 |
"nested" |
| 272 |
the transform chain was |
| 273 |
[{"gjson":{"Path":"moo"}}] |
| 274 |
the raw value was |
| 275 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 276 |
|
| 277 |
Matching: test_gjson_transform_simple: matches: |
| 278 |
Expected |
| 279 |
"cow" |
| 280 |
to equal |
| 281 |
"cowx" |
| 282 |
diff |
| 283 |
--- test |
| 284 |
+++ actual |
| 285 |
@@ -1 +1 @@ |
| 286 |
-cowx |
| 287 |
+cow |
| 288 |
the transform chain was |
| 289 |
[{"gjson":{"Path":"moo.nested"}}] |
| 290 |
the raw value was |
| 291 |
"{\"foo\": \"bar\", \"moo\": {\"nested\": \"cow\"}, \"count\": \"15\"}" |
| 292 |
|
| 293 |
Matching: test_gjson_using_this_and_equal: matches: |
| 294 |
Expected |
| 295 |
{"baz":"bing","foo":"bar"} |
| 296 |
to equal |
| 297 |
{"baz":"bing","fox":"bar"} |
| 298 |
the transform chain was |
| 299 |
[{"gjson":{"Path":"@this"}}] |
| 300 |
the raw value was |
| 301 |
"{\"foo\": \"bar\", \"baz\": \"bing\"}" |
| 302 |
|
| 303 |
Matching: test_numeric_string: matches: |
| 304 |
Expected |
| 305 |
"128" |
| 306 |
to equal |
| 307 |
"129" |
| 308 |
diff |
| 309 |
--- test |
| 310 |
+++ actual |
| 311 |
@@ -1 +1 @@ |
| 312 |
-129 |
| 313 |
+128 |
| 314 |
the transform chain was |
| 315 |
[{"to-string":{}}] |
| 316 |
the raw value was |
| 317 |
128 |
| 318 |
|
| 319 |
Matching: test_reader_as_single_string: matches: |
| 320 |
Expected |
| 321 |
"cool" |
| 322 |
to equal |
| 323 |
"not-cool" |
| 324 |
diff |
| 325 |
--- test |
| 326 |
+++ actual |
| 327 |
@@ -1 +1 @@ |
| 328 |
-not-cool |
| 329 |
+cool |
| 330 |
|
| 331 |
Matching: test_reader_using_int_matchers: matches: |
| 332 |
Expected |
| 333 |
40 |
| 334 |
to be numerically le |
| 335 |
20 |
| 336 |
the transform chain was |
| 337 |
[{"to-numeric":{}}] |
| 338 |
the raw value was |
| 339 |
"40" |
| 340 |
|
| 341 |
Matching: test_reader_using_string_matchers: matches: |
| 342 |
Expected |
| 343 |
"foo bar\n15\nmoo cow\n" |
| 344 |
to have length |
| 345 |
15 |
| 346 |
|
| 347 |
Matching: test_string_float: matches: |
| 348 |
Expected |
| 349 |
128.3 |
| 350 |
to be numerically eq |
| 351 |
129.3 |
| 352 |
the transform chain was |
| 353 |
[{"to-numeric":{}}] |
| 354 |
the raw value was |
| 355 |
"128.3" |
| 356 |
|
| 357 |
Matching: test_string_numeric: matches: |
| 358 |
Expected |
| 359 |
128 |
| 360 |
to be numerically eq |
| 361 |
129 |
| 362 |
the transform chain was |
| 363 |
[{"to-numeric":{}}] |
| 364 |
the raw value was |
| 365 |
"128" |
| 366 |
|
| 367 |
Total Duration: |
| 368 |
Count: 18, Failed: 18, Skipped: 0 |