tektoncd/pipeline

Cleanup đź§ą `pipelinerunresolution_test.go` đź§ą and move mock data, status mutations and selectors to testing framework.

Ouverte

#8 921 ouverte le 25 juil. 2025

 (6 commentaires) (0 réaction) (1 personne assignée)Go (1 943 forks)auto 404
area/testinggood first issuehelp wantedkind/cleanup

Métriques du dépôt

Stars
 (9 013 étoiles)
Métriques de merge PR
 (Merge moyen 9j 3h) (137 PRs mergées en 30 j)

Description

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, ...
  • Move all status transformers to pkg/reconciler/testing/status.go, i.e makeSucceed(), 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

Guide contributeur