Skip to content

Add func check tests 2#18376

Open
vr-ibm wants to merge 4 commits into
GoogleCloudPlatform:mainfrom
vr-ibm:add-func-check-tests-2
Open

Add func check tests 2#18376
vr-ibm wants to merge 4 commits into
GoogleCloudPlatform:mainfrom
vr-ibm:add-func-check-tests-2

Conversation

@vr-ibm

@vr-ibm vr-ibm commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Description
This is Part 3 of the template-check func-check series. This PR adds validation for advanced Go template syntax and ensures error reporting accuracy.
Changes:

  • Added TestFuncCheck_Pipelines: Verifies that functions used within pipelines (e.g., {{ .Name | camelize }}) are correctly identified and validated.
  • Added TestFuncCheck_LineNumbers: Verifies that the linter accurately reports the line number of invalid functions, ensuring developers can quickly locate errors in large .go.tmpl files.

Note: This PR is based on add-func-check-tests-1. It should be merged after Part 2.

Release Note Template for Downstream PRs (will be copied)

@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Jul 23, 2026
@modular-magician modular-magician added awaiting-approval Pull requests that need reviewer's approval to run presubmit tests and removed awaiting-approval Pull requests that need reviewer's approval to run presubmit tests labels Jul 23, 2026
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 1a9c21d:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@vr-ibm
vr-ibm marked this pull request as ready for review July 23, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants