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

Commit

Permalink
test: Integration test for status project tableoutput
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed Nov 18, 2017
1 parent fd32123 commit ba7a019
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[constraint]]
branch = "master"
name = "github.com/darkowlzz/deptest-project-status"

[[constraint]]
name = "github.com/sdboyer/deptest"
version = "1.0.0"

[[constraint]]
name = "github.com/sdboyer/deptestdos"
version = "2.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
_ "github.com/darkowlzz/deptest-project-status/pkgfoo"
_ "github.com/sdboyer/deptest"
_ "github.com/sdboyer/deptestdos"
)

func main() {}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[constraint]]
branch = "master"
name = "github.com/darkowlzz/deptest-project-status"

[[constraint]]
name = "github.com/sdboyer/deptest"
version = "1.0.0"

[[constraint]]
name = "github.com/sdboyer/deptestdos"
version = "2.0.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
_ "github.com/darkowlzz/deptest-project-status/pkgfoo"
_ "github.com/sdboyer/deptest"
_ "github.com/sdboyer/deptestdos"
)

func main() {}
20 changes: 20 additions & 0 deletions cmd/dep/testdata/harness_tests/status/project_status/stdout.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

PROJECT: github.com/sdboyer/deptest
VERSION: v1.0.0
CONSTRAINTS: []
SOURCE: github.com/sdboyer/deptest
ALT SOURCE:
PUB VERSION: branches: master
nonsemvers:
semvers: v0.8.0, v0.8.1, v1.0.0
REVISION: ff2948a2ac8f538c4ecd55962e919d1e13e74baf
LATEST ALLOWED: ff2948a2ac8f538c4ecd55962e919d1e13e74baf
SOURCE TYPE: git
PACKAGES: github.com/sdboyer/deptest
PROJECT IMPORTERS: github.com/darkowlzz/deptest-project-status, github.com/sdboyer/deptestdos
PACKAGE IMPORTERS: github.com/sdboyer/deptest
github.com/darkowlzz/deptest-project-status/pkgbar
github.com/darkowlzz/deptest-project-status/pkgfoo
github.com/sdboyer/deptestdos
UPSTREAM EXISTS: yes
UPSTREAM VERSION EXISTS: yes
12 changes: 12 additions & 0 deletions cmd/dep/testdata/harness_tests/status/project_status/testcase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"commands": [
["ensure"],
["status", "github.com/sdboyer/deptest"]
],
"error-expected": "",
"vendor-final": [
"github.com/darkowlzz/deptest-project-status",
"github.com/sdboyer/deptest",
"github.com/sdboyer/deptestdos"
]
}

0 comments on commit ba7a019

Please sign in to comment.