Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
theunrepentantgeek committed Jun 14, 2021
1 parent 2a4865f commit 18d99a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion hack/generator/pkg/astmodel/resource_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ func (resource *ResourceType) WithoutProperty(name PropertyName) *ResourceType {
return result
}


// Properties returns all the properties from this resource type
// An ordered slice is returned to preserve immutability and provide determinism
func (resource *ResourceType) Properties() []*PropertyDefinition {
Expand Down
4 changes: 2 additions & 2 deletions hack/generator/pkg/astmodel/resource_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ func TestResourceType_WithProperty_OverridingSpec_Panics(t *testing.T) {
g := NewGomegaWithT(t)
base := NewResourceType(emptySpec, emptyStatus)
specProp := NewPropertyDefinition("Spec", "spec", StringType)
g.Expect(func() { base.WithProperty(specProp)}).To(Panic())
g.Expect(func() { base.WithProperty(specProp) }).To(Panic())
}

func TestResourceType_WithProperty_OverridingStatus_Panics(t *testing.T) {
g := NewGomegaWithT(t)
base := NewResourceType(emptySpec, emptyStatus)
statusProp := NewPropertyDefinition("Status", "status", StringType)
g.Expect(func() { base.WithProperty(statusProp)}).To(Panic())
g.Expect(func() { base.WithProperty(statusProp) }).To(Panic())
}

/*
Expand Down

0 comments on commit 18d99a4

Please sign in to comment.