File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func (o *ListOpts) Run() error {
4848 return err
4949 }
5050
51- sunsets , err := o .newSunsetInRange (sunset .NewSunsetListFromSpec (specInfo ))
51+ sunsets , err := o .newSunsetInRange (sunset .NewListFromSpec (specInfo ))
5252 if err != nil {
5353 return err
5454 }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ type Sunset struct {
3333 Team string `json:"team" yaml:"team"`
3434}
3535
36- func NewSunsetListFromSpec (spec * load.SpecInfo ) []* Sunset {
36+ func NewListFromSpec (spec * load.SpecInfo ) []* Sunset {
3737 var sunsets []* Sunset
3838 paths := spec .Spec .Paths
3939
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ func TestNewSunsetListFromSpec(t *testing.T) {
108108
109109 for _ , test := range tests {
110110 t .Run (test .name , func (t * testing.T ) {
111- result := NewSunsetListFromSpec (test .specInfo )
111+ result := NewListFromSpec (test .specInfo )
112112 assert .Equal (t , test .expected , result )
113113 })
114114 }
You can’t perform that action at this time.
0 commit comments