-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0ebb83
commit 8bca842
Showing
18 changed files
with
306 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
PROJECT_NAME := "fsEngine" | ||
PKG := "github.com/fanap-infra/fsEngine" | ||
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/) | ||
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go) | ||
|
||
.PHONY: all dep build clean test coverage coverhtml lint-test unit-test | ||
|
||
all: build | ||
|
||
lint-test:dep | ||
@golangci-lint run | ||
|
||
fmt-test: | ||
@golangci-lint run -p format | ||
|
||
fmt: | ||
@go fmt ./... | ||
|
||
test: export EXEC_MODE = TEST | ||
|
||
test: unit-test race-test | ||
|
||
unit-test: dep | ||
@go test -count=1 -p=1 -short ./... | ||
|
||
race-test: dep | ||
@go test -race -count=1 -p=1 -short ./... | ||
|
||
# msan: dep | ||
# @go test -msan -short ${PKG_LIST} | ||
|
||
# coverage: | ||
# ./tools/coverage.sh; | ||
|
||
# coverhtml: | ||
# ./tools/coverage.sh html; | ||
|
||
dep: | ||
@go mod init; \ | ||
go mod tidy; \ | ||
go mod download; \ | ||
go mod verify; |
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package fsEngine | ||
|
||
type Events interface { | ||
DeleteFile(fileID uint32) | ||
DeleteFileByArchiver(archiverFile string) | ||
VirtualFileDeleted(fileID uint32, message string) | ||
} |
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
Oops, something went wrong.