This website requires JavaScript.
f2423bd71a
make internal/multipart use internal/cerr constant errors
Adrien Marquès
2019-11-21 22:35:00 +0100
638f5e44c8
test internal/config trick to have a 100% coverage (as conflict check is undeterministic, merge all conditions)
Adrien Marquès
2019-11-21 22:29:58 +0100
228f5b9a02
test internal/config empty parameter rename should not rename
Adrien Marquès
2019-11-21 22:27:57 +0100
aba95d4163
remove dead code
Adrien Marquès
2019-11-21 22:20:12 +0100
e9c7160d2e
expand internal/config test coverage
Adrien Marquès
2019-11-21 22:18:00 +0100
61b58a9f98
add internal/config test for the Browse() method
Adrien Marquès
2019-11-21 22:00:48 +0100
dd0e321cbd
test internal/config parsing and illegal/missing fields
Adrien Marquès
2019-11-21 21:48:24 +0100
5ac3b81f6d
parameter name conflict: on rename conflicting rename, return original name
Adrien Marquès
2019-11-21 21:34:25 +0100
4accad7286
refactor internal/config
Adrien Marquès
2019-11-21 21:02:48 +0100
dec7fd9a62
test internal/cerr package + add WrapString() to use a raw string
Adrien Marquès
2019-11-21 20:42:05 +0100
5cdcfd21ca
fix typo
Adrien Marquès
2019-11-19 19:25:38 +0100
d44df7eee0
fix readme usage & changelog
Adrien Marquès
2019-11-19 19:24:57 +0100
6bc8160f99
Prettify logs
Adrien Marquès
2019-11-19 19:19:55 +0100
d1d581bd75
Test json: add a check with invalid json (no parameter is parsed)
Adrien Marquès
2019-11-19 17:00:11 +0100
5f1d76a0a8
Test json body parameters
Adrien Marquès
2019-11-19 16:57:23 +0100
ac7adcbd1f
Test with url encoded body parameters
Adrien Marquès
2019-11-19 16:53:02 +0100
5897461323
Test store agains Query parameters
Adrien Marquès
2019-11-19 16:15:53 +0100
44d19e8b65
Test store with uri arguments
Adrien Marquès
2019-11-19 16:15:44 +0100
613233faef
Test empty store -> fix
Adrien Marquès
2019-11-19 16:15:26 +0100
c40fb03aa7
merge parseParameter
Adrien Marquès
2019-11-19 16:14:50 +0100
9189babe20
test primitive types : bool, float64
Adrien Marquès
2020-03-02 22:49:17 +0100
dfa6cba137
fix parsing primitive types instead of erroring unknown type
Adrien Marquès
2020-03-02 22:45:58 +0100
feec6e96d0
test bool slice vs. json bool slice
Adrien Marquès
2020-03-02 22:42:59 +0100
c2a88f0d2d
test string slice vs. json string slice
Adrien Marquès
2020-03-02 22:42:45 +0100
e1cdd1c2a3
fix parsing non-string slice values
Adrien Marquès
2020-03-02 22:42:17 +0100
4b89ed6421
remove outdated tests
Adrien Marquès
2020-03-02 22:34:34 +0100
9bf7860dc9
[breaking] do not return first element of 1-sized slices as it, return a slice
Adrien Marquès
2020-03-02 22:24:36 +0100
8779f9ca3a
fix returning first element of 1-sized slice instead of the slice
Adrien Marquès
2020-03-02 22:20:28 +0100
2d1b1aad6d
test conversion from 1-sized slice to first element (bool vs json boolean primitive)
Adrien Marquès
2020-03-02 22:19:28 +0100
0f599e58ce
test json invalid float primitives ; only valid when wrapped
Adrien Marquès
2020-03-02 22:01:16 +0100
09b9eb2ae5
fix formatting type
Adrien Marquès
2020-03-02 22:00:39 +0100
e2bda2b2dd
test json invalid boolean primitives ; only valid when wrapped
Adrien Marquès
2020-03-02 21:56:05 +0100
c2e8efc82b
test string slice as string ; invalid json but valid when wrapped
Adrien Marquès
2020-03-02 21:51:06 +0100
503f01bddd
test uint builtin typecheck overflow values for []byte
Adrien Marquès
2020-03-01 21:43:28 +0100
53eaec0c50
test regex for builtin string typecheck
Adrien Marquès
2020-03-01 21:41:20 +0100
77dbc5663b
test simple string parameter
Adrien Marquès
2020-03-01 21:34:14 +0100
22947db2b6
fix: mark parameter as parsed after successful parsing
Adrien Marquès
2020-02-28 18:41:05 +0100
3e718c96e8
return error when parsing parameters
Adrien Marquès
2020-02-28 17:50:55 +0100
e2e3799bc3
expand store.go coverage to 100% with a tricky test
Adrien Marquès
2019-11-21 23:21:59 +0100
ee34abd424
replace bytes.NewBufferString() with strings.NewReader()
Adrien Marquès
2019-11-21 23:00:42 +0100
017bfd45b4
test multipart body paramters
Adrien Marquès
2019-11-21 22:58:03 +0100
635773218f
make internal/multipart use internal/cerr constant errors
Adrien Marquès
2019-11-21 22:35:00 +0100
0126a551b3
Merge branch 'test/internal' of go/aicra into 0.2.0
Adrien Marquès
2019-11-21 21:31:24 +0000
4221f8cf2c
test internal/config trick to have a 100% coverage (as conflict check is undeterministic, merge all conditions)
Adrien Marquès
2019-11-21 22:29:58 +0100
8ba58b4748
test internal/config empty parameter rename should not rename
Adrien Marquès
2019-11-21 22:27:57 +0100
b18ea98497
remove dead code
Adrien Marquès
2019-11-21 22:20:12 +0100
6218327fd2
expand internal/config test coverage
Adrien Marquès
2019-11-21 22:18:00 +0100
8cebf52405
add internal/config test for the Browse() method
Adrien Marquès
2019-11-21 22:00:48 +0100
aada9edff5
test internal/config parsing and illegal/missing fields
Adrien Marquès
2019-11-21 21:48:24 +0100
52b42e479a
parameter name conflict: on rename conflicting rename, return original name
Adrien Marquès
2019-11-21 21:34:25 +0100
19e203c364
refactor internal/config
Adrien Marquès
2019-11-21 21:02:48 +0100
28d11b840f
test internal/cerr package + add WrapString() to use a raw string
Adrien Marquès
2019-11-21 20:42:05 +0100
a173ab6c4c
fix typo
Adrien Marquès
2019-11-19 19:25:38 +0100
fa6ae714b6
fix readme usage & changelog
Adrien Marquès
2019-11-19 19:24:57 +0100
d17a82f47a
Prettify logs
Adrien Marquès
2019-11-19 19:19:55 +0100
ca5d013a64
Merge branch 'refactor/reqdata' of go/aicra into 0.2.0
Adrien Marquès
2019-11-19 16:09:33 +0000
a54c428670
Test json: add a check with invalid json (no parameter is parsed)
Adrien Marquès
2019-11-19 17:00:11 +0100
0a470dbd40
Test json body parameters
Adrien Marquès
2019-11-19 16:57:23 +0100
24b0eaa68b
Test with url encoded body parameters
Adrien Marquès
2019-11-19 16:53:02 +0100
da1ee37612
Test store agains Query parameters
Adrien Marquès
2019-11-19 16:15:53 +0100
f272f880e8
Test store with uri arguments
Adrien Marquès
2019-11-19 16:15:44 +0100
36008db9e5
Test empty store -> fix
Adrien Marquès
2019-11-19 16:15:26 +0100
8a1144a187
merge parseParameter
Adrien Marquès
2019-11-19 16:14:50 +0100
f247581395
fix badge
Adrien Marquès
2019-11-19 11:45:29 +0100
97de8a1f28
remove jenkins support
Adrien Marquès
2019-11-18 16:18:42 +0100
60a1849cf8
add builtin.bool test + make other types that allow 'string' allow '[]byte' as well
Adrien Marquès
2019-11-18 16:17:02 +0100
9affef4cd7
add ci support
Adrien Marquès
2019-11-18 16:03:18 +0100
712c047096
add startup logs
Adrien Marquès
2019-09-26 19:03:37 +0200
aa9ef778eb
Update readme
Adrien Marquès
2019-09-26 14:28:11 +0200
9bf7f24ec9
feat: typechecks: tests for 'float64'
Adrien Marquès
2019-05-06 19:26:36 +0200
d00cee1019
useless commit
Adrien Marquès
2019-11-19 14:39:07 +0100
1f9c3c02c1
Merge branch '0.2.0' of go/aicra into master
Adrien Marquès
2019-11-19 10:49:50 +0000
42b09c5c38
fix badge
Adrien Marquès
2019-11-19 11:45:29 +0100
0c816c1b03
test
Adrien Marquès
2019-11-19 11:05:02 +0100
0348d33439
remove jenkins support
Adrien Marquès
2019-11-18 16:18:42 +0100
82188560c6
add builtin.bool test + make other types that allow 'string' allow '[]byte' as well
Adrien Marquès
2019-11-18 16:17:02 +0100
1953abf722
add ci support
Adrien Marquès
2019-11-18 16:03:18 +0100
acfbee3894
add startup logs
Adrien Marquès
2019-09-26 19:03:37 +0200
cabbc53a86
Merge branch '0.2.0' of gogs:go/aicra into 0.2.0
Adrien Marquès
2019-09-26 18:09:52 +0200
4eb9f58074
Update readme
Adrien Marquès
2019-09-26 14:28:11 +0200
54f2496943
feat: typechecks: tests for 'float64'
Adrien Marquès
2019-05-06 19:26:36 +0200
4c5f13933c
feat: typechecks: tests for 'uint' + add string repr for 'int'
Adrien Marquès
2019-05-05 21:20:05 +0200
4e36adfcc9
readme: add ci badge
Adrien Marquès
2019-05-05 18:55:51 +0200
f53dfcbf62
ci: create jenkins file
Adrien Marquès
2019-05-05 11:31:32 +0200
be84c86172
fix: use t.Run in tests instead of for{} with i
Adrien Marquès
2019-05-04 10:35:29 +0200
21f48a65ee
feat: parallelize tests +ci
Adrien Marquès
2019-05-04 10:11:47 +0200
bf3e651c2c
ref: clean comments and make errors constants
Adrien Marquès
2019-05-04 10:04:16 +0200
0780e8dd33
feat: update string type checker | test: string, int, float, any typecheckers
Adrien Marquès
2019-05-03 20:09:04 +0200
bafaad97e6
clean: request param now uses internal const error 'cerr'
Adrien Marquès
2019-05-02 22:18:16 +0200
a83d077569
feat: add builtin types [int, uint] | fix request param getters | add request param getters [GetFloat, GetInt, GetUint, GetStrings] with permissive possible types and 'automatic' conversion
Adrien Marquès
2019-05-02 22:15:03 +0200
eb5ce4c0d0
fix: semantic renaming : internal.config.Method.Permission is now Scope
Adrien Marquès
2019-05-02 20:57:58 +0200
189d3b40a6
fix: semantic (comments) renaming : 'controller' to 'service', more explicit names
Adrien Marquès
2019-05-02 07:54:45 +0200
6afedf190f
ref 1: clean server.go code + response implements http.Handler + add generic getter on request params Get() (interface{},error)
Adrien Marquès
2019-05-02 07:48:34 +0200
0e498607ba
clean
Adrien Marquès
2019-05-01 21:30:16 +0200
0912e07f4f
fix: pass error arguments as values not array + set header after WriteHeader()
Adrien Marquès
2019-05-01 18:49:44 +0200
7a87288876
fix: rename 'WrapError' to 'SetError' + shadow response error + response implements Error()
Adrien Marquès
2019-05-01 18:23:57 +0200
1e4476ced5
feat: rename 'Error.Put' to 'SetArguments' with n >= 1 arguments + move 'WrapError' to response
Adrien Marquès
2019-05-01 18:15:44 +0200
b9ca1801bd
fix: rename 'NewError' to 'WrapError'
Adrien Marquès
2019-05-01 18:05:58 +0200
b9f240b86b
feat: fix error creation to bind arguments directly + add optional error argument in NewResponse()
Adrien Marquès
2019-05-01 18:01:32 +0200
4e25c647b2
feat: add status code in response
Adrien Marquès
2019-05-01 16:40:26 +0200