This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix GolangCI notices - typos - scope lint - if-else-if -> switch-case - remove binding to all interfaces - missing error checks - missing params checks - Update web-module to new mserv - missing error check in tests - `mserv.NewHTTPServer` was changed - Refactoring workers-module - test coverage - update to new version of `chapsuk/worker` - remove logger from params (not need anymore) - remove redis from dependencies (used worker.Locker interface instead) - Dependencies: - Update: - github.com/chapsuk/mserv v1.1.0 - github.com/chapsuk/worker v1.0.0 - github.com/davecgh/go-spew v1.1.1 - github.com/prometheus/client_golang v1.1.0 - github.com/spf13/viper v1.4.0 - github.com/stretchr/testify v1.4.0 - go.uber.org/atomic v1.4.0 - go.uber.org/zap v1.10.0 - Removed: - github.com/bsm/redis-lock - github.com/golang/protobuf - github.com/go-redis/redis - github.com/chapsuk/wait - github.com/onsi/ginkgo - github.com/onsi/gomega - github.com/prometheus/common - github.com/robfig/cron - github.com/smartystreets/goconvey - go.uber.org/multierr - google.golang.org/grpc
- Loading branch information
Showing
13 changed files
with
485 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package workers | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestError_Error(t *testing.T) { | ||
tests := []struct { | ||
name string | ||
e Error | ||
want string | ||
}{ | ||
{name: "empty error"}, | ||
{name: "custom error", e: Error("custom"), want: "custom"}, | ||
} | ||
for i := range tests { | ||
tt := tests[i] | ||
t.Run(tt.name, func(t *testing.T) { | ||
if got := tt.e.Error(); got != tt.want { | ||
t.Errorf("Error() = %v, want %v", got, tt.want) | ||
} | ||
}) | ||
} | ||
} |
Oops, something went wrong.