Skip to content

Commit

Permalink
feat: add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
veezhang committed Nov 30, 2022
1 parent 3cd1335 commit 74a026a
Show file tree
Hide file tree
Showing 21 changed files with 1,923 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ut test
run: make gotest
- name: test importer
run: docker-compose up --exit-code-from importer
timeout-minutes: 20
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
err/
vendor/
nebula-importer
coverage.*

# IDE
.vscode/
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ test:
docker-compose up --exit-code-from importer; \
docker-compose down -v;

gotest:
go test -gcflags=all=-l -race -coverprofile=coverage.txt -covermode=atomic ./...

fmt:
@go mod tidy && find . -path ./vendor -prune -o -type f -iname '*.go' -exec go fmt {} \;
5 changes: 5 additions & 0 deletions examples/sf/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*

!.gitignore
!README.md
!sf.yaml
3 changes: 3 additions & 0 deletions examples/sf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Examples for LDBC Social Network

You need to download the ldbc file first.
Loading

0 comments on commit 74a026a

Please sign in to comment.