-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add tests using testdata input files #251
Comments
atc0005
added a commit
that referenced
this issue
Mar 31, 2024
Some of the upcoming testdata files will have intentional line endings set per file and we do not want git's automatic conversion feature to (potentially, based on client settings) interfere with explicitly chosen EOLs. refs GH-251
atc0005
added a commit
that referenced
this issue
Mar 31, 2024
Some of the upcoming testdata files will have intentional line endings set per file and we do not want git's automatic conversion feature to (potentially, based on client settings) interfere with explicitly chosen EOLs. refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
- add collection of testdata files - `input` - `encoded-all` - `encoded-mixed` - `invalid-all` - `invalid-mixed` - `output` - `embedded` - `standalone` - add "exported" tests which focus strictly on exported functionality of the `internal/safelinks` package - add minor dependency on the `google/go-cmp` package for some tests - add brief README for testdata content to explain purpose, important of preserving the exact formatting (mostly specific EOL) within the input and output testdata files refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
- add collection of testdata files - `input` - `encoded-all` - `encoded-mixed` - `invalid-all` - `invalid-mixed` - `output` - `embedded` - `standalone` - add "exported" tests which focus strictly on exported functionality of the `internal/safelinks` package - add minor dependency on the `google/go-cmp` package for some tests - add brief README for testdata content to explain purpose, important of preserving the exact formatting (mostly specific EOL) within the input and output testdata files refs GH-251
GH-291 adds most of the testdata cases noted in the OP but input URLs with a |
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
- add collection of testdata files - `input` - `encoded-all` - `encoded-mixed` - `invalid-all` - `invalid-mixed` - `output` - `embedded` - `standalone` - add "exported" tests which focus strictly on exported functionality of the `internal/safelinks` package - add minor dependency on the `google/go-cmp` package for some tests - add brief README for testdata content to explain purpose, important of preserving the exact formatting (mostly specific EOL) within the input and output testdata files refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
- add collection of testdata files - `input` - `encoded-all` - `encoded-mixed` - `invalid-all` - `invalid-mixed` - `output` - `embedded` - `standalone` - add "exported" tests which focus strictly on exported functionality of the `internal/safelinks` package - add minor dependency on the `google/go-cmp` package for some tests - add brief README for testdata content to explain purpose, important of preserving the exact formatting (mostly specific EOL) within the input and output testdata files refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
- add collection of testdata files - `input` - `encoded-all` - `encoded-mixed` - `invalid-all` - `invalid-mixed` - `output` - `embedded` - `standalone` - add "exported" tests which focus strictly on exported functionality of the `internal/safelinks` package - add minor dependency on the `google/go-cmp` package for some tests - add brief README for testdata content to explain purpose, important of preserving the exact formatting (mostly specific EOL) within the input and output testdata files refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
- add collection of testdata files - `input` - `encoded-all` - `encoded-mixed` - `invalid-all` - `invalid-mixed` - `output` - `embedded` - `standalone` - add "exported" tests which focus strictly on exported functionality of the `internal/safelinks` package - add minor dependency on the `google/go-cmp` package for some tests - add brief README for testdata content to explain purpose, important of preserving the exact formatting (mostly specific EOL) within the input and output testdata files refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
I previously tried to simplify logic to avoid this func being flagged by gocognit but botched the error handling logic. Fix logic and ignore gocognit warnings for the exported_test.go file. refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
I previously tried to simplify logic to avoid this func being flagged by gocognit but botched the error handling logic. Fix logic and ignore gocognit warnings for the exported_test.go file. refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 7, 2024
Help ensure that recent changes to require known safelinks "base" domain to be present in Safe Links URLs continutes to function as intended. Previously, these input URLs would have been incorrectly flagged as Safe Links URLs and "decoded" into the value of the `url` query parameter. refs GH-251
GH-294 completes this list of requirements. |
atc0005
added a commit
that referenced
this issue
Apr 8, 2024
Extend coverage for URLs without and without angle brackets. This is less important for the GUI app (which is already tested against this scenario) but should help with future CLI app support for angle bracket enclosed input. refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 8, 2024
Extend coverage for URLs with and without angle brackets. This is less important for the GUI app (which is already tested against this scenario) but should help with future CLI app support for angle bracket enclosed input. refs GH-251
atc0005
added a commit
that referenced
this issue
Apr 10, 2024
- add collection of testdata files - `input` - `encoded-all` - `encoded-mixed` - `invalid-all` - `invalid-mixed` - `output` - `embedded` - `standalone` - add "exported" tests which focus strictly on exported functionality of the `internal/safelinks` package - add minor dependency on the `google/go-cmp` package for some tests - add brief README for testdata content to explain purpose, importantance of preserving the exact formatting (mostly specific EOL) within the input and output testdata files Add new testdata URLs with a url parameter Help ensure that recent changes to require known safelinks "base" domain to be present in Safe Links URLs continutes to function as intended. Previously, these input URLs would have been incorrectly flagged as Safe Links URLs and "decoded" into the value of the `url` query parameter. refs GH-251
atc0005
added a commit
that referenced
this issue
Jul 16, 2024
Extend coverage for URLs with and without angle brackets. This is less important for the GUI app (which is already tested against this scenario) but should help with future CLI app support for angle bracket enclosed input. refs GH-251
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposed input files:
https://
withurl
query parameter (expected Safe Links URL pattern)http://
withurl
query parameter (invalid Safe Links URL pattern)http://
withouturl
query parameter (invalid Safe Links URL pattern)https://
withouturl
query parameter (invalid Safe Links URL pattern)The text was updated successfully, but these errors were encountered: