diff --git a/go-junit-report.go b/go-junit-report.go index dd7003e..ea6cfae 100644 --- a/go-junit-report.go +++ b/go-junit-report.go @@ -89,7 +89,7 @@ func main() { report := gtr.FromEvents(events, *packageName) for i := range report.Packages { for k, v := range properties { - report.Packages[i].AddProperty(k, v) + report.Packages[i].SetProperty(k, v) } } diff --git a/pkg/gtr/gtr.go b/pkg/gtr/gtr.go index 89af14f..b97e4f9 100644 --- a/pkg/gtr/gtr.go +++ b/pkg/gtr/gtr.go @@ -40,7 +40,7 @@ type Package struct { RunError Error } -func (p *Package) AddProperty(key, value string) { +func (p *Package) SetProperty(key, value string) { if p.Properties == nil { p.Properties = make(map[string]string) }