-
Notifications
You must be signed in to change notification settings - Fork 301
Add test info mod rs #827
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
Merged
Add test info mod rs #827
Changes from 10 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ff9bae0
testing bare git repo error using git-testtools script #700
atluft 36856c7
after running cargo fmt
atluft efa3a96
refactoring new to call init for testing of bare repo detection
atluft 993d8e5
brute force testing of format function
atluft 3e2757d
idea for testing formatted output using git-testtools arguments
atluft e36397f
fix formatting
atluft cc72ad6
adding pretty assert and concept of match anything in expected string
atluft 13ac3d1
fixing windows expected output failures
atluft 218ac5d
fixing formatting, eventually I will use a hook
atluft 7b26b88
removing color based checking, simple regex now
atluft 9a8b3ed
Update src/info/mod.rs
atluft 419d7e7
Update src/info/mod.rs
atluft 9ca8a9d
updates to use external file w/ regex in it
atluft dfe994c
trying standard path separator to see if windows ci passes
atluft e34db5f
updates to regex that make it easier to read
atluft 6a15f6d
test coverage of serializer using json
atluft 7c143cb
fix formatting
atluft a88625a
better assert logic for bare repo and pretty assert to debug CI failu…
atluft aead7a3
fixing git version in json serializarion
atluft 4497f02
obtains 100% code coverage by manipulating git repo and files parsed
atluft 9a7ae44
more code coverage, trying to get those last few lines
atluft 56bbd62
making use of snapshot name in testing
atluft 8ab0bb2
changing verification to string based test
atluft 6486d50
switching to using inst snapshots
atluft 75b427c
adding snap file needed for previous commit
atluft 2f04c83
refactor default into Config object to allow Default construction
atluft f50c2e2
better naming on function
atluft 21fbbdc
removing snap file from ignore
atluft 69c6229
using object serialization in test
atluft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/bash | ||
| set -eu -o pipefail | ||
|
|
||
| git init -q --bare |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #!/bin/bash | ||
| set -eu -o pipefail | ||
|
|
||
| case "${1}" in | ||
| verilog) | ||
| LANG_DIR="verilog" | ||
| LANG_EXT="vg" | ||
| ;; | ||
| *) | ||
| echo "OOPS, ARGUMENT EXPECTED TO BE ONE OF THESE VALUES:" | ||
| echo " verilog for language type verilog" | ||
| exit | ||
| ;; | ||
| esac | ||
|
|
||
| mkdir ${LANG_DIR} | ||
| cd ${LANG_DIR} | ||
|
|
||
| git init -q | ||
|
|
||
| # BOTH NAME AND EMAIL ARE NEEDED FOR RECOGNITION | ||
| git config --local --add "committer.name" "onefetch-committer-name" | ||
| git config --local --add "committer.email" "[email protected]" | ||
|
|
||
| git config --local --add "user.name" "onefetch-user-name" | ||
| git config --local --add "user.email" "[email protected]" | ||
|
|
||
| git config --local --add "author.name" "onefetch-author-name" | ||
| git config --local --add "author.email" "[email protected]" | ||
|
|
||
| git remote add origin https://github.com/user/repo.git | ||
|
|
||
| git checkout -b main | ||
| touch code.${LANG_EXT} | ||
| git add code.${LANG_EXT} | ||
| git commit -q -m c1 | ||
| echo hello >> code.${LANG_EXT} | ||
| git commit -q -am c2 | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.