Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 05893d5

Browse files
committed
add test cases for status -json and -dot output
1 parent 3c5cd66 commit 05893d5

File tree

21 files changed

+130
-0
lines changed

21 files changed

+130
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
digraph {
2+
node [shape=box];
3+
388407825 [label="github.com/golang/notexist"];
4+
2304687900 [label="github.com/sdboyer/deptest\nv0.8.0"];
5+
2659405890 [label="github.com/sdboyer/deptestdos\nv2.0.0"];
6+
388407825 -> 2304687900;
7+
388407825 -> 2659405890;
8+
2659405890 -> 2304687900;
9+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"commands": [
3+
["ensure"],
4+
["status","-dot"]
5+
],
6+
"vendor-final": [
7+
"github.com/sdboyer/deptest",
8+
"github.com/sdboyer/deptestdos"
9+
]
10+
}

cmd/dep/testdata/harness_tests/status/case1/json/final/Gopkg.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[dependencies]]
2+
name = "github.com/sdboyer/deptest"
3+
version = "^0.8.0"

cmd/dep/testdata/harness_tests/status/case1/json/initial/Gopkg.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[dependencies]]
2+
name = "github.com/sdboyer/deptest"
3+
version = "^0.8.0"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2016 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package main
6+
7+
import (
8+
"github.com/sdboyer/deptest"
9+
"github.com/sdboyer/deptestdos"
10+
)
11+
12+
func main() {
13+
err := nil
14+
if err != nil {
15+
deptest.Map["yo yo!"]
16+
}
17+
deptestdos.diMeLo("whatev")
18+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"ProjectRoot":"github.com/sdboyer/deptest","Children":null,"Constraint":{},"Version":{},"Revision":"ff2948a2ac8f538c4ecd55962e919d1e13e74baf","Latest":"3f4c3bea144e112a69bbe5d8d01c1b09a544253f","PackageCount":1},{"ProjectRoot":"github.com/sdboyer/deptestdos","Children":null,"Constraint":{},"Version":{},"Revision":"5c607206be5decd28e6263ffffdcee067266015e","Latest":"5c607206be5decd28e6263ffffdcee067266015e","PackageCount":1}]
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"commands": [
3+
["ensure"],
4+
["status","-json"]
5+
],
6+
"vendor-final": [
7+
"github.com/sdboyer/deptest",
8+
"github.com/sdboyer/deptestdos"
9+
]
10+
}

cmd/dep/testdata/harness_tests/status/case1/table/final/Gopkg.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[dependencies]]
2+
name = "github.com/sdboyer/deptest"
3+
version = "^0.8.0"

cmd/dep/testdata/harness_tests/status/case1/table/initial/Gopkg.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[dependencies]]
2+
name = "github.com/sdboyer/deptest"
3+
version = "^0.8.0"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2016 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package main
6+
7+
import (
8+
"github.com/sdboyer/deptest"
9+
"github.com/sdboyer/deptestdos"
10+
)
11+
12+
func main() {
13+
err := nil
14+
if err != nil {
15+
deptest.Map["yo yo!"]
16+
}
17+
deptestdos.diMeLo("whatev")
18+
}

0 commit comments

Comments
 (0)