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

main: Exit if input files are not named pipes. #114

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

stephen-fox
Copy link
Contributor

In discussions with the team, we decided that the input files will always be named pipes. As a result, we felt it was necessary to enforce a file-type check that produces a helpful error message.

@stephen-fox stephen-fox requested review from a team as code owners August 17, 2023 17:36
@@ -0,0 +1,23 @@
package common

Check warning

Code scanning / Revive (reported by Codacy)

should have a package comment Warning

should have a package comment
In discussions with the team, we decided that the input files will
always be named pipes. As a result, we felt it was necessary to
enforce a file-type check that produces a helpful error message.
@codecov
Copy link

codecov bot commented Aug 17, 2023

Codecov Report

Merging #114 (1607c77) into main (4686f8d) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   79.86%   79.90%   +0.04%     
==========================================
  Files          30       31       +1     
  Lines        1967     1976       +9     
==========================================
+ Hits         1571     1579       +8     
- Misses        322      323       +1     
  Partials       74       74              
Flag Coverage Δ
unittests 79.90% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
internal/common/namedpipe.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@stephen-fox stephen-fox merged commit 155258d into main Aug 17, 2023
23 checks passed
@stephen-fox stephen-fox deleted the check-inputs-file-type branch August 17, 2023 17:52
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.

3 participants