test internals #7

Merged
xdrm-brackets merged 9 commits from test/internal into 0.2.0 2019-11-21 21:31:25 +00:00

9 Commits

Author SHA1 Message Date
Adrien Marquès 4221f8cf2c test internal/config trick to have a 100% coverage (as conflict check is undeterministic, merge all conditions)
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2019-11-21 22:29:58 +01:00
Adrien Marquès 8ba58b4748 test internal/config empty parameter rename should not rename 2019-11-21 22:27:57 +01:00
Adrien Marquès b18ea98497 remove dead code 2019-11-21 22:20:12 +01:00
Adrien Marquès 6218327fd2 expand internal/config test coverage
- make parameter type "?" invalid as it marks it as optional only
- check optional vs. required parameters
- test subservice in method description error check
2019-11-21 22:18:00 +01:00
Adrien Marquès 8cebf52405 add internal/config test for the Browse() method
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2019-11-21 22:00:48 +01:00
Adrien Marquès aada9edff5 test internal/config parsing and illegal/missing fields 2019-11-21 21:48:24 +01:00
Adrien Marquès 52b42e479a parameter name conflict: on rename conflicting rename, return original name 2019-11-21 21:34:25 +01:00
Adrien Marquès 19e203c364 refactor internal/config
- create cerr (constant errors) with wrapped context (service name, method, parameter name)
- fix comments numbering
- remove duplicate check
2019-11-21 21:29:23 +01:00
Adrien Marquès 28d11b840f test internal/cerr package + add WrapString() to use a raw string
continuous-integration/drone/push Build is passing Details
2019-11-21 20:51:29 +01:00