Skip to content

Commit c0630dd

Browse files
author
Alistair McLean
committed
Updating the toPointer method.
1 parent d77254e commit c0630dd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cyclonedx_json_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,3 @@ func TestExternalReferenceType_NewValues(t *testing.T) {
517517
}
518518
})
519519
}
520-
521-
func toPointer[T any](t *testing.T, value T) *T {
522-
t.Helper()
523-
return &value
524-
}

cyclonedx_xml_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,3 +706,8 @@ func TestEvidence_UnmarshalXML(t *testing.T) {
706706
}, evidence.Identity)
707707
})
708708
}
709+
710+
func toPointer[T any](t *testing.T, value T) *T {
711+
t.Helper()
712+
return &value
713+
}

0 commit comments

Comments
 (0)