-
Notifications
You must be signed in to change notification settings - Fork 113
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
Unit tests - internal/scorer/value #258
Conversation
- Added unit tests for internal/scorer/value Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
"testing" | ||
) | ||
|
||
func TestExistsCondition(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.
I think TestExistsCondition
and TestNotCondition
can be combined into a single test e.g. TestCondition
.
Rather than "f"
, have "condition"
and specify the condition in each test
struct.
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.
I have combined TestExistsCondition
and TestNotCondition
into one test called TestCondition
. But I don't understand what you mean by
"Rather than
"f"
, have"condition"
and specify the condition in eachtest
struct."
Could you please clarify?
Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
@calebbrown, a friendly ping! |
* Unit tests - internal/scorer/value - Added unit tests for internal/scorer/value Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> * Updated based on code review comments Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> * Renamed function Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com> Co-authored-by: Caleb Brown <calebbrown@google.com>
Signed-off-by: nathannaveen 42319948+nathannaveen@users.noreply.github.com