Skip to content

Add coverage for kafka data recorder#145

Merged
zhouzhuojie merged 1 commit into
masterfrom
zz/add-test-for-kafka
Jul 10, 2018
Merged

Add coverage for kafka data recorder#145
zhouzhuojie merged 1 commit into
masterfrom
zz/add-test-for-kafka

Conversation

@zhouzhuojie
Copy link
Copy Markdown
Collaborator

No description provided.

// Key generates the partition key
func (r *kafkaEvalResult) Key() string {
if r.EvalResult == nil {
if r.EvalResult == nil || r.EvalContext == nil {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this change do?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an edge case found via the unit test. The line below r.EvalContext.EntityID requires that r.EvalContext is not nil

@zhouzhuojie zhouzhuojie merged commit 63e6952 into master Jul 10, 2018
@zhouzhuojie zhouzhuojie deleted the zz/add-test-for-kafka branch July 10, 2018 23:14
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.

2 participants