github.com/git-ogawa/go-dbyml@v1.2.1/dbyml/template_test.go (about)

     1  package dbyml
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  )
     7  
     8  func TestConfigTemplate(t *testing.T) {
     9  	config := NewConfiguration()
    10  	MakeTemplate(config)
    11  	_, err := os.Stat("dbyml.yml")
    12  	if err != nil {
    13  		panic(err)
    14  	}
    15  	os.Remove("dbyml.yml")
    16  }
    17  
    18  func TestBuildkitToml(t *testing.T) {
    19  	config := NewConfiguration()
    20  	MakeBuildkitToml(&config.RegistryInfo)
    21  	_, err := os.Stat("buildkitd.toml")
    22  	if err != nil {
    23  		panic(err)
    24  	}
    25  	os.Remove("buildkitd.toml")
    26  }