github.com/cima-lexis/wundererr@v0.0.0-20211005094629-75ae72005cfa/wundarchive/wundarchive_test.go (about)

     1  package wundarchive
     2  
     3  import (
     4  	"os"
     5  	"path"
     6  	"testing"
     7  )
     8  
     9  func TestArchive(t *testing.T) {
    10  	dir, err := os.Getwd()
    11  	if err != nil {
    12  		panic(err)
    13  	}
    14  
    15  	err = os.Chdir(path.Dir(dir))
    16  	if err != nil {
    17  		panic(err)
    18  	}
    19  
    20  	dir, err = os.Getwd()
    21  	if err != nil {
    22  		panic(err)
    23  	}
    24  
    25  	if err := PrepareArchive("20191128"); err != nil {
    26  		panic(err)
    27  	}
    28  }