Silin-Chen's picture
CrossSWE-Bench: current 171-instance release
0e239c6
Raw History Blame Contribute Delete
800 Bytes
diff --git a/pkg/recorder/crossrepo_contract/crossrepo_contract_test.go b/pkg/recorder/crossrepo_contract/crossrepo_contract_test.go
new file mode 100644
index 0000000..1111111
--- /dev/null
+++ b/pkg/recorder/crossrepo_contract/crossrepo_contract_test.go
@@ -0,0 +1,19 @@
+package crossrepo_contract_test
+
+import (
+ "testing"
+
+ "k8s.io/apimachinery/pkg/runtime"
+ crrec "sigs.k8s.io/controller-runtime/pkg/recorder"
+)
+
+type annotatedRecorderContract interface {
+ AnnotatedEventf(runtime.Object, runtime.Object, map[string]string, string, string, string, string, ...interface{})
+}
+
+func requireAnnotatedRecorder(r annotatedRecorderContract) {}
+
+func TestCrossRepoAnnotatedRecorderContract(t *testing.T) {
+ var recorder crrec.EventRecorder
+ requireAnnotatedRecorder(recorder)
+}