Skip to content

Commit

Permalink
fix: add missing deepcopy func
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Sep 27, 2024
1 parent 2389f3a commit 2f5ca76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/apis/policy/v1alpha1/assertion_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ func (a *AssertionTree) UnmarshalJSON(data []byte) error {
func (in *AssertionTree) DeepCopyInto(out *AssertionTree) {
out._tree = deepCopy(in._tree)
}

func (in *AssertionTree) DeepCopy() *AssertionTree {
if in == nil {
return nil
}
out := new(AssertionTree)
in.DeepCopyInto(out)
return out

Check warning on line 52 in pkg/apis/policy/v1alpha1/assertion_tree.go

View check run for this annotation

Codecov / codecov/patch

pkg/apis/policy/v1alpha1/assertion_tree.go#L46-L52

Added lines #L46 - L52 were not covered by tests
}

0 comments on commit 2f5ca76

Please sign in to comment.