tektoncd/pipeline
Cleanup 🧹 `pipelinerunresolution_test.go` 🧹 and move mock data, status mutations and selectors to testing framework.
开放
#8,921 创建于 2025年7月25日
area/testinggood first issuehelp wantedkind/cleanup
仓库指标
- 星标
- (9,013 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Summary
Refactor pipelinerunresolution_test.go a bit and move testing helpers to the new testing framework location:
- Move all mock data creation to
pkg/reconciler/testing/factory.go, i.e.var p = ..., var pts = ..., newTaskRun(), ...- rename the single letter variables to proper names e.g.
p => pipeline, pts = pipelineTasks, ...
- rename the single letter variables to proper names e.g.
- Move all status transformers to
pkg/reconciler/testing/status.go, i.emakeSucceed(), withCanceled()... - Move all selectors to
pkg/reconciler/testing/selectors.go, i.e.nopGetCustomRun, ...
This is a good first issue.
Related issue #8906.
/help /good-first-issue /kind cleanup