Minor changes

This commit is contained in:
Martino Ferrari
2026-01-27 15:39:25 +01:00
parent 1d7dc665d6
commit 6781d50ee4
2 changed files with 8 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
BINARY_NAME=mdt
BUILD_DIR=build
.PHONY: all build test coverage clean install
.PHONY: all build test coverage clean install vet fmt
all: test build
all: vet test build
build:
mkdir -p $(BUILD_DIR)
@@ -16,6 +16,12 @@ coverage:
go test -cover -coverprofile=coverage.out ./test/... -coverpkg=./internal/...
go tool cover -func=coverage.out
vet:
go vet ./...
fmt:
go fmt ./...
clean:
rm -rf $(BUILD_DIR)
rm -f coverage.out

View File

@@ -10,9 +10,6 @@ func TestASTCoverage(t *testing.T) {
pos := parser.Position{Line: 1, Column: 1}
var n parser.Node
// var d parser.Definition // Definition has unexported method, can't assign?
// Yes I can assign if I am using the interface type exported by parser.
// But I cannot call the method.
var d parser.Definition
var v parser.Value