jlucktay / jlucktay/rest-api

Some functions are too long, per golangci-lint/funlen

Open
#35 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Need to tidy up some funcs:
``` bash
$ golangci-lint run --disable-all --enable funlen
pkg/server/handlers.update_test.go:17: Function 'TestUpdatePayment' has too many statements (42 > 40) (funlen)
func TestUpdatePayment(t *testing.T) {
test/dummy_body_test.go:19: Function 'TestDummyBodyCreateUpdate' is too long (74 > 60) (funlen)
func TestDummyBodyCreateUpdate(t *testing.T) {
test/nil_body_crud_test.go:17: Function 'TestNilBodyCRUD' is too long (110 > 60) (funlen)
func TestNilBodyCRUD(t *testing.T) {
pkg/storage/storage_test.go:16: Function 'TestStorage' is too long (86 > 60) (funlen)
func TestStorage(t *testing.T) {
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.