Skip to content

Commit

Permalink
chore: fix function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: lvyaoting <[email protected]>
  • Loading branch information
lvyaoting authored and tekton-robot committed Apr 8, 2024
1 parent 5076da2 commit 1bfd1c1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1/resultref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ func TestLooksLikeResultRefWhenExpressionFalse(t *testing.T) {
}
}

// TestPipelineTaskResultReferences tests that PipelineTaskResultRefs()
// TestPipelineTaskResultRefs tests that PipelineTaskResultRefs()
// parses all the result variables used in a PipelineTask correctly and
// returns them all in the expected order.
func TestPipelineTaskResultRefs(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1alpha1/run_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func TestRunIsCancelledWithMessage(t *testing.T) {
}
}

// TestRunStatusExtraFields tests that extraFields in a RunStatus can be parsed
// TestRunStatus tests that extraFields in a RunStatus can be parsed
// from YAML.
func TestRunStatus(t *testing.T) {
in := `apiVersion: tekton.dev/v1alpha1
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/resultref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ func TestLooksLikeResultRefWhenExpressionFalse(t *testing.T) {
}
}

// TestPipelineTaskResultReferences tests that PipelineTaskResultRefs()
// TestPipelineTaskResultRefs tests that PipelineTaskResultRefs()
// parses all the result variables used in a PipelineTask correctly and
// returns them all in the expected order.
func TestPipelineTaskResultRefs(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (rrs *ResolutionRequestSpec) ConvertFrom(ctx context.Context, from *v1beta1
return nil
}

// convertTo converts a v1alpha1.ResolutionRequestStatus to a v1beta1.ResolutionRequestStatus
// convertFrom converts a v1alpha1.ResolutionRequestStatus to a v1beta1.ResolutionRequestStatus
func (rrs *ResolutionRequestStatus) convertFrom(ctx context.Context, from *v1beta1.ResolutionRequestStatus) {
rrs.Data = from.Data

Expand Down
2 changes: 1 addition & 1 deletion pkg/entrypoint/entrypointer.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ func findReplacement(stepDir string, s string) (string, []string, error) {
return replaceWithString, replaceWithArray, nil
}

// replaceCommandAndArgs performs replacements for step results in environment variables.
// replaceEnv performs replacements for step results in environment variables.
func replaceEnv(stepDir string) error {
for _, e := range os.Environ() {
pair := strings.SplitN(e, "=", 2)
Expand Down
2 changes: 1 addition & 1 deletion pkg/reconciler/pipelinerun/affinity_assistant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func TestCreateOrUpdateAffinityAssistantsAndPVCs_Failure(t *testing.T) {
}
}

// TestCreateAffinityAssistantWhenNodeIsCordoned tests an existing Affinity Assistant can identify the node failure and
// TestCreateOrUpdateAffinityAssistantWhenNodeIsCordoned tests an existing Affinity Assistant can identify the node failure and
// can migrate the affinity assistant pod to a healthy node so that the existing pipelineRun runs to competition
func TestCreateOrUpdateAffinityAssistantWhenNodeIsCordoned(t *testing.T) {
expectedAffinityAssistantName := GetAffinityAssistantName(workspacePVCName, testPRWithPVC.Name)
Expand Down

0 comments on commit 1bfd1c1

Please sign in to comment.