mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-14 18:59:10 +00:00
*_test.go: ignore cyclomatic complexity for test files
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
7fed71e221
commit
106c52de51
6 changed files with 11 additions and 0 deletions
|
@ -129,6 +129,7 @@ func TestTar(t *testing.T) {
|
|||
// `tar -cvf some.tar dir1 dir2 dir3 dir4/dir5 dir6` ... etc.
|
||||
// The testdata of collection.tar resemble such an archive. the `collection` folder
|
||||
// is the contents of `collection.tar` extracted
|
||||
//gocyclo:ignore
|
||||
func TestArchiveCreation(t *testing.T) {
|
||||
fh, err := os.Open("./testdata/collection.tar")
|
||||
if err != nil {
|
||||
|
@ -197,6 +198,7 @@ func TestArchiveCreation(t *testing.T) {
|
|||
// evaluated. Also, The fact that this archive contains a single entry, yet the
|
||||
// entry is associated with a file that has parent directories, means that the
|
||||
// "." directory should be the lowest sub-directory under which `file` is contained.
|
||||
//gocyclo:ignore
|
||||
func TestTreeTraversal(t *testing.T) {
|
||||
fh, err := os.Open("./testdata/traversal.tar")
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue