-
Notifications
You must be signed in to change notification settings - Fork 152
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
fix(core): disable check args exist valid for raw #788
Conversation
Signed-off-by: Patrik Cyvoct <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test, so we're sure this bug doesn't come back ?
Co-Authored-By: Loïc Bourgois <[email protected]>
Signed-off-by: Patrik Cyvoct <[email protected]>
Signed-off-by: Patrik Cyvoct <[email protected]>
internal/namespaces/autocomplete/testdata/test-autocomplete-bash-level1.stdout.golden
Outdated
Show resolved
Hide resolved
@@ -71,6 +88,25 @@ func Test_handleUnmarshalErrors(t *testing.T) { | |||
})) | |||
} | |||
|
|||
func Test_RawArgs(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shoudn't we have a testcobraRun
func that only test cobraRun
?
I find it strnage that we hav to test an entire command.
Shouldn't we only call cobraRun()
in the test ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could 😄 I'll fix that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though it may be more complicated 🤔
Signed-off-by: Patrik Cyvoct <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #787
Signed-off-by: Patrik Cyvoct [email protected]