Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: modify test package name #6472

Merged
merged 1 commit into from
Apr 18, 2023

Commits on Apr 17, 2023

  1. test: modify test package name

    Try to ensure that only exported functions are tested.
    
    Ref: https://github.com/tektoncd/community/blob/main/standards.md#go-packages
    
    ```
    All exported functions should have tests
      * If your package is named "foo", prefer putting tests in a "foo_test" package in the same folder to ensure that only exported functions are tested
    ```
    
    The shell command to search for test package names without the `_test` suffix is:
    * `find . -name "*_test.go" | xargs grep -E '^package ' | grep -Ev '_test$' | grep -v '^./test' | sort`
    l-qing committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    3b0f7bd View commit details
    Browse the repository at this point in the history