github.com/helmwave/helmwave@v0.36.4-0.20240509190856-b35563eba4c6/pkg/release/config_export_test.go (about)

     1  // This package exports some fields for tests
     2  package release
     3  
     4  import (
     5  	"math/rand"
     6  	"strconv"
     7  )
     8  
     9  func NewConfig() *config {
    10  	return &config{
    11  		NameF:      "blabla" + strconv.Itoa(rand.Int()),
    12  		NamespaceF: "blabla",
    13  	}
    14  }
    15  
    16  func (rel *config) IsDryRun() bool {
    17  	return rel.dryRun
    18  }
    19  
    20  func (rel *config) BuildAfterUnmarshal(releases ...*config) {
    21  	rel.buildAfterUnmarshal(releases)
    22  }