Adrien Marquès
9189babe20
test primitive types : bool, float64
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
2020-03-02 22:49:17 +01:00
Adrien Marquès
dfa6cba137
fix parsing primitive types instead of erroring unknown type
2020-03-02 22:45:58 +01:00
Adrien Marquès
feec6e96d0
test bool slice vs. json bool slice
continuous-integration/drone/push Build is passing
Details
2020-03-02 22:42:59 +01:00
Adrien Marquès
c2a88f0d2d
test string slice vs. json string slice
2020-03-02 22:42:45 +01:00
Adrien Marquès
e1cdd1c2a3
fix parsing non-string slice values
...
- only string were parsed using wrapped json
- now we also keep primitive types
2020-03-02 22:42:17 +01:00
Adrien Marquès
4b89ed6421
remove outdated tests
continuous-integration/drone/push Build is passing
Details
2020-03-02 22:34:34 +01:00
Adrien Marquès
9bf7860dc9
[breaking] do not return first element of 1-sized slices as it, return a slice
...
continuous-integration/drone/push Build is failing
Details
- it is more consistent and does not rely of a "hidden" assomption.
- for consistency, it is also a better practice to always the same type when waiting to receive a slice ; the 1 element case should not break anything
2020-03-02 22:24:36 +01:00
Adrien Marquès
8779f9ca3a
fix returning first element of 1-sized slice instead of the slice
continuous-integration/drone/push Build is passing
Details
2020-03-02 22:20:28 +01:00
Adrien Marquès
2d1b1aad6d
test conversion from 1-sized slice to first element (bool vs json boolean primitive)
continuous-integration/drone/push Build is failing
Details
2020-03-02 22:19:28 +01:00
Adrien Marquès
0f599e58ce
test json invalid float primitives ; only valid when wrapped
continuous-integration/drone/push Build is passing
Details
2020-03-02 22:01:16 +01:00
Adrien Marquès
09b9eb2ae5
fix formatting type
2020-03-02 22:00:39 +01:00
Adrien Marquès
e2bda2b2dd
test json invalid boolean primitives ; only valid when wrapped
2020-03-02 21:56:05 +01:00
Adrien Marquès
c2e8efc82b
test string slice as string ; invalid json but valid when wrapped
2020-03-02 21:51:06 +01:00
Adrien Marquès
503f01bddd
test uint builtin typecheck overflow values for []byte
continuous-integration/drone/push Build is passing
Details
2020-03-01 21:43:28 +01:00
Adrien Marquès
53eaec0c50
test regex for builtin string typecheck
2020-03-01 21:41:20 +01:00
Adrien Marquès
77dbc5663b
test simple string parameter
continuous-integration/drone/push Build is passing
Details
2020-03-01 21:34:14 +01:00
Adrien Marquès
22947db2b6
fix: mark parameter as parsed after successful parsing
...
- avoid parsing multiple times in a row ; it has no side-effect but is useless
- actually does not cause any issue, but for consistency sake!
2020-02-28 18:41:05 +01:00
Adrien Marquès
3e718c96e8
return error when parsing parameters
2020-02-28 17:50:55 +01:00
Adrien Marquès
e2e3799bc3
expand store.go coverage to 100% with a tricky test
...
continuous-integration/drone/push Build is passing
Details
- force http.Request.ParseForm to fail
2019-11-21 23:23:40 +01:00
Adrien Marquès
ee34abd424
replace bytes.NewBufferString() with strings.NewReader()
2019-11-21 23:23:14 +01:00
Adrien Marquès
017bfd45b4
test multipart body paramters
2019-11-21 23:23:04 +01:00