Datasets:
CrossSWE-Bench / instances /cloudnative-controller-runtime-3509 /tests /patches /controller-runtime /test-1.patch
Download instances/cloudnative-controller-runtime-3509/tests/patches/controller-runtime/test-1.patch from CrossSWE/CrossSWE-Bench: direct link, hf CLI and curl.
- Browser
- Download file 800 Bytes
-
https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/instances/cloudnative-controller-runtime-3509/tests/patches/controller-runtime/test-1.patch
- Command line
-
hf download hf://datasets/CrossSWE/CrossSWE-Bench/instances/cloudnative-controller-runtime-3509/tests/patches/controller-runtime/test-1.patch
-
curl -L -o test-1.patch https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/instances/cloudnative-controller-runtime-3509/tests/patches/controller-runtime/test-1.patch
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 | |
| +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) | |
| +} | |