Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ go.work.sum
# node_modules
**/node_modules/

**/*.class
**/*.class

# No binary files
**/bin/**
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.24.5

require (
github.com/antlr4-go/antlr/v4 v4.13.1
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.10.0
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ github.com/bytebase/antlr/v4 v4.0.0-20240827034948-8c385f108920 h1:IfmPt5o5R70NK
github.com/bytebase/antlr/v4 v4.0.0-20240827034948-8c385f108920/go.mod h1:ykhjIPiv0IWpu3OGXCHdz2eUSe8UNGGD6baqjs8jSuU=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
Expand Down
230 changes: 0 additions & 230 deletions tools/fuzzing/DESIGN.md

This file was deleted.

38 changes: 38 additions & 0 deletions tools/fuzzing/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.PHONY: all test clean help

all: test

# Run tests
test:
@echo "Running tests..."
go test -v github.com/bytebase/parser/tools/fuzzing/...

# Clean build artifacts
clean:
@echo "Cleaning..."
go clean

# Install dependencies
deps:
@echo "Installing dependencies..."
cd ../.. && go mod tidy && go mod download

# Format code
fmt:
@echo "Formatting code..."
go fmt github.com/bytebase/parser/tools/fuzzing/...

# Run linter
lint:
@echo "Running linter..."
golangci-lint run

# Show help
help:
@echo "Available targets:"
@echo " test - Run all tests"
@echo " clean - Clean build artifacts"
@echo " deps - Install/update dependencies"
@echo " fmt - Format all Go code"
@echo " lint - Run golangci-lint"
@echo " help - Show this help message"
Loading