| 1 | package spdxexpscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/ |
| 2 | |
| 3 | // getLicenseNode is a test helper method that is expected to create a valid |
| 4 | // license node. Use this function when the test data is known to be a valid |
| 5 | // license that would parse successfully. |
| 6 | func getLicenseNodescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/getLicenseNode().(license string, hasPlus bool) *nodescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/node# { |
| 7 | return &nodescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/node#{ |
| 8 | rolescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/node#role.: licenseNodescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/licenseNode., |
| 9 | expscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/node#exp.: nil, |
| 10 | licscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/node#lic.: &licenseNodePartialscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/licenseNodePartial#{ |
| 11 | licensescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/licenseNodePartial#license.: license, |
| 12 | hasPlusscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/licenseNodePartial#hasPlus.: hasPlus, |
| 13 | hasExceptionscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/licenseNodePartial#hasException.: false, |
| 14 | exceptionscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/licenseNodePartial#exception.: "", |
| 15 | }, |
| 16 | refscip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/node#ref.: nil, |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | // getParsedNode is a test helper method that is expected to create a valid node |
| 21 | // and swallow errors. This allows test structures to use parsed node data. |
| 22 | // Use this function when the test data is expected to parse successfully. |
| 23 | func getParsedNodescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/getParsedNode().(expression string) *nodescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/node# { |
| 24 | // swallows errors |
| 25 | n, _ := parsescip-go gomod github.com/github/go-spdx/v2 . `github.com/github/go-spdx/v2/spdxexp`/parse().(expression) |
| 26 | return n |
| 27 | } |