We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01e558e commit 121070aCopy full SHA for 121070a
docker-compose.yml
@@ -6,4 +6,4 @@ services:
6
volumes:
7
- .:/code
8
working_dir: /code
9
- command: sh -c 'if gofmt -s -l . > /dev/null; then exit 1; fi; go test'
+ command: sh /code/scripts/test.sh
scripts/test.sh
@@ -0,0 +1,10 @@
1
+#!/usr/bin/env bash
2
+
3
+set -e
4
5
+if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
+ echo "Bad code format"
+ exit 1
+fi
10
+go test
server_test.go
@@ -25,8 +25,8 @@ func TestServer_On(t *testing.T) {
25
expectedHandlerCount int
26
}{
27
{
28
- name: "No handlers",
29
- args: []args{},
+ name: "No handlers",
+ args: []args{},
30
expectedHandlerCount: 0,
31
},
32
0 commit comments