Skip to content

Commit

Permalink
analyzer: Add functional tests for GoDep
Browse files Browse the repository at this point in the history
  • Loading branch information
Haiko Schol authored and haikoschol committed Apr 9, 2018
1 parent 4be61da commit 72e17fe
Show file tree
Hide file tree
Showing 6 changed files with 418 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
path = scanner/src/funTest/assets/scanners/scancode-toolkit
url = https://github.com/nexb/scancode-toolkit.git
ignore = untracked
[submodule "qmstr"]
path = analyzer/src/funTest/assets/projects/external/qmstr
url = https://github.com/QMSTR/qmstr.git
ignore = untracked
1 change: 1 addition & 0 deletions analyzer/src/funTest/assets/projects/external/qmstr
Submodule qmstr added at 0cd17d
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@
---
allowDynamicVersions: false
project:
id: "GoDep::qmstr:0cd17d10b931c9108450ca5a68d4f85b6e4953ef"
declared_licenses: []
aliases: []
vcs:
type: ""
url: ""
revision: ""
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/QMSTR/qmstr.git"
revision: "0cd17d10b931c9108450ca5a68d4f85b6e4953ef"
path: ""
homepage_url: ""
scopes:
- name: "default"
delivered: true
dependencies:
- id: "::github.com/dgraph-io/dgo:939c270eac93a70e63162abd53f78dbc9e928ff6"
dependencies: []
errors: []
- id: "::github.com/gogo/protobuf:v0.5"
dependencies: []
errors: []
- id: "::github.com/golang/protobuf:v1.0.0"
dependencies: []
errors: []
- id: "::github.com/inconshreveable/mousetrap:v1.0"
dependencies: []
errors: []
- id: "::github.com/pkg/errors:v0.8.0"
dependencies: []
errors: []
- id: "::github.com/spf13/cobra:v0.0.1"
dependencies: []
errors: []
- id: "::github.com/spf13/pflag:v1.0.0"
dependencies: []
errors: []
- id: "::golang.org/x/net:b417086c80e91bfa321ef761574721644b8b9f61"
dependencies: []
errors: []
- id: "::golang.org/x/text:e19ae1496984b1c655b8044a65c0300a3c878dd3"
dependencies: []
errors: []
- id: "::google.golang.org/genproto:4eb30f4778eed4c258ba66527a0d4f9ec8a36c45"
dependencies: []
errors: []
- id: "::google.golang.org/grpc:v1.9.2"
dependencies: []
errors: []
- id: "::gopkg.in/yaml.v2:d670f9405373e636a5a2765eea47fac0c9bc91a4"
dependencies: []
errors: []
packages:
- id: "GoDep::github.com/dgraph-io/dgo:939c270eac93a70e63162abd53f78dbc9e928ff6"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "github.com/dgraph-io/dgo"
revision: "939c270eac93a70e63162abd53f78dbc9e928ff6"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/dgraph-io/dgo.git"
revision: "939c270eac93a70e63162abd53f78dbc9e928ff6"
path: ""
- id: "GoDep::github.com/gogo/protobuf:v0.5"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "github.com/gogo/protobuf"
revision: "342cbe0a04158f6dcb03ca0079991a51a4248c02"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/gogo/protobuf.git"
revision: "342cbe0a04158f6dcb03ca0079991a51a4248c02"
path: ""
- id: "GoDep::github.com/golang/protobuf:v1.0.0"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "github.com/golang/protobuf"
revision: "925541529c1fa6821df4e44ce2723319eb2be768"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/golang/protobuf.git"
revision: "925541529c1fa6821df4e44ce2723319eb2be768"
path: ""
- id: "GoDep::github.com/inconshreveable/mousetrap:v1.0"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "github.com/inconshreveable/mousetrap"
revision: "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/inconshreveable/mousetrap.git"
revision: "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
path: ""
- id: "GoDep::github.com/pkg/errors:v0.8.0"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "github.com/pkg/errors"
revision: "645ef00459ed84a119197bfb8d8205042c6df63d"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/pkg/errors.git"
revision: "645ef00459ed84a119197bfb8d8205042c6df63d"
path: ""
- id: "GoDep::github.com/spf13/cobra:v0.0.1"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "github.com/spf13/cobra"
revision: "7b2c5ac9fc04fc5efafb60700713d4fa609b777b"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/spf13/cobra.git"
revision: "7b2c5ac9fc04fc5efafb60700713d4fa609b777b"
path: ""
- id: "GoDep::github.com/spf13/pflag:v1.0.0"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "github.com/spf13/pflag"
revision: "e57e3eeb33f795204c1ca35f56c44f83227c6e66"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/spf13/pflag.git"
revision: "e57e3eeb33f795204c1ca35f56c44f83227c6e66"
path: ""
- id: "GoDep::golang.org/x/net:b417086c80e91bfa321ef761574721644b8b9f61"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "golang.org/x/net"
revision: "b417086c80e91bfa321ef761574721644b8b9f61"
path: ""
vcs_processed:
type: "Git"
url: "https://go.googlesource.com/net"
revision: "b417086c80e91bfa321ef761574721644b8b9f61"
path: ""
- id: "GoDep::golang.org/x/text:e19ae1496984b1c655b8044a65c0300a3c878dd3"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "golang.org/x/text"
revision: "e19ae1496984b1c655b8044a65c0300a3c878dd3"
path: ""
vcs_processed:
type: "Git"
url: "https://go.googlesource.com/text"
revision: "e19ae1496984b1c655b8044a65c0300a3c878dd3"
path: ""
- id: "GoDep::google.golang.org/genproto:4eb30f4778eed4c258ba66527a0d4f9ec8a36c45"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "google.golang.org/genproto"
revision: "4eb30f4778eed4c258ba66527a0d4f9ec8a36c45"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/google/go-genproto.git"
revision: "4eb30f4778eed4c258ba66527a0d4f9ec8a36c45"
path: ""
- id: "GoDep::google.golang.org/grpc:v1.9.2"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "google.golang.org/grpc"
revision: "6b51017f791ae1cfbec89c52efdf444b13b550ef"
path: ""
vcs_processed:
type: "Git"
url: "https://github.com/grpc/grpc-go.git"
revision: "6b51017f791ae1cfbec89c52efdf444b13b550ef"
path: ""
- id: "GoDep::gopkg.in/yaml.v2:d670f9405373e636a5a2765eea47fac0c9bc91a4"
declared_licenses: []
description: ""
homepage_url: ""
binary_artifact:
url: ""
hash: ""
hash_algorithm: ""
source_artifact:
url: ""
hash: ""
hash_algorithm: ""
vcs:
type: "GoDep"
url: "gopkg.in/yaml.v2"
revision: "d670f9405373e636a5a2765eea47fac0c9bc91a4"
path: ""
vcs_processed:
type: "Git"
url: "https://gopkg.in/yaml.v2"
revision: "d670f9405373e636a5a2765eea47fac0c9bc91a4"
path: ""
errors: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[constraint]]
name = "github.com/fatih/color"
version = "1.6.0"

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package main

import "github.com/fatih/color"

func main() {
c := color.New(color.FgCyan).Add(color.Underline)
c.Println("Prints cyan text with an underline.")
}
Loading

0 comments on commit 72e17fe

Please sign in to comment.