lint
This commit is contained in:
@@ -19,7 +19,7 @@ type ChartData struct {
|
||||
type ChartRepoData struct {
|
||||
Name string `yaml:"name"`
|
||||
Repository string `yaml:"repository"`
|
||||
Charts []ChartData `yaml:"charts"`
|
||||
Charts []ChartData `yaml:"charts"`
|
||||
}
|
||||
|
||||
type chartsRepoData struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package chart
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
"os"
|
||||
"testing"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
@@ -10,14 +10,14 @@ var TEST_DEST_DIR = "../wrk_chart"
|
||||
var TEST_SRC_DIR = filepath.Join("../../test", "chart")
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
folderPath := TEST_DEST_DIR
|
||||
folderPath := TEST_DEST_DIR
|
||||
|
||||
os.RemoveAll(folderPath)
|
||||
os.MkdirAll(folderPath, os.ModePerm)
|
||||
os.RemoveAll(folderPath)
|
||||
os.MkdirAll(folderPath, os.ModePerm)
|
||||
|
||||
// call flag.Parse() here if TestMain uses flags
|
||||
exitCode := m.Run()
|
||||
// call flag.Parse() here if TestMain uses flags
|
||||
exitCode := m.Run()
|
||||
|
||||
os.RemoveAll(folderPath)
|
||||
os.Exit(exitCode)
|
||||
os.RemoveAll(folderPath)
|
||||
os.Exit(exitCode)
|
||||
}
|
||||
Reference in New Issue
Block a user