-
Notifications
You must be signed in to change notification settings - Fork 17
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
Revisit tests involving source interface propagation #279
Comments
The "superfluous" configuration element is in The relevant test case is: func TestMethodCallOnStaticallyUnknownReceiverPropagatesTaint(sm core.SourceManipulator, s core.Source) {
data := sm.Propagate(s.Data)
core.Sink(data) // want "a source has reached a sink"
} The intent of the test is to validate that taint propagates via the argument when When So the config element is actually needed. |
Just looking at it from a fuzzing perspective, there needs to be some test that relies on that piece of the configuration. Otherwise, we don't really know what codepath this test is taking. Is it testing what you think it is, or is it handling it in the non-source way? I suppose this overlaps a bit with #272, since this was introduced before we had a firm idea of how we wanted to handle interfaces. We can't really add |
I agree. Currently I don't have a good idea for how to do that, though. If you have any ideas, let me know. |
Bug report
Describe the bug
While iterating #278, I noticed that
internal/pkg/levee/testdata/test-config.yaml
will pass all tests with the following Source specification removed:This was introduced in #264.
To Reproduce
Remove or comment out the above configuration. Observe that tests pass. See #278 first test run for demonstration.
The text was updated successfully, but these errors were encountered: