Flc
21cfba8bba
ci: update golangci-lint configuration and lint settings
...
- Update golangci-lint to version 2
- Enable new linters and adjust existing ones
- Update lint settings across multiple test files
- Remove unused struct and variable checks
- Add new lint exclusions for generated code and specific directories
Signed-off-by: Flc <four_leaf_clover@foxmail.com>
2025-05-21 23:24:27 +08:00
Matthieu MOREL
e8d34d053f
ci(lint): enable usestdlibvars linter ( #4091 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-11-15 23:52:16 +08:00
Matthieu MOREL
5f55c6a711
ci(lint): enable testifylint linter ( #4010 )
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-07-14 20:33:08 +08:00
thinkerou
4b68a5f12a
chore: update go.mod and remove space from copyright ( #3158 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-28 10:42:28 +08:00
metal A-wing
8860527de6
feat attachment filename support utf8 ( #3071 )
2022-03-17 11:56:16 +08:00
Bo-Yi Wu
94153d1e19
test: expose performRequest func ( #3012 )
2022-01-02 19:07:44 +08:00
xyb
1297966100
use IndexByte replace Split to improve performance ( #2500 )
...
Co-authored-by: yonbiaoxiao <yonbiaoxiao@tencent.com>
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-10-15 13:55:57 +08:00
田欧
f45c928a15
chore: use http.Status* instead of hard code ( #1482 )
2018-08-14 09:51:56 +08:00
田欧
202db4fb11
improve utils code coverage ( #1473 )
2018-08-12 21:38:07 +08:00
田欧
eeb57848ca
update assert param(expect, actual) position ( #1177 )
2017-11-21 21:18:45 +08:00
Philipp Meinen
9fd8aff56e
tests: make path assertions aware of vendoring
...
The path of a package can change in a situation where
dependency vendoring is in use.
This change modifies gin's unit tests to allow such paths.
2015-08-23 00:13:41 +02:00
Manu Mtz-Almeida
0e08a109f9
Adds unit tests for Bind()
2015-07-04 19:56:43 +02:00
Manu Mtz-Almeida
138e4b49bf
Using WrapH() internally.
2015-05-20 11:30:22 +02:00
Manu Mtz-Almeida
c4914f0ff7
Adds WrapF() and WrapH()
2015-05-20 00:39:52 +02:00
Manu Mtz-Almeida
4f855faef2
Adds helper function. Wrap(http.HandlerFund) gin.HandlerFun
2015-05-19 22:18:58 +02:00
Manu Mtz-Almeida
99694bb716
Fixes errors
2015-05-12 15:22:13 +02:00
Manu Mtz-Almeida
0a192fb0fa
Tons of unit tests
2015-04-09 12:15:02 +02:00
Manu Mtz-Almeida
ac1ee3fb86
Adds unit tests for Utils
2015-04-08 15:32:50 +02:00