-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Refactoring events to use Config interface for init #5532
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
Refactoring events to use Config interface for init #5532
Conversation
03a5472
to
0243bb8
Compare
Codecov Report
@@ Coverage Diff @@
## master #5532 +/- ##
==========================================
+ Coverage 71.32% 71.34% +0.02%
==========================================
Files 400 400
Lines 14829 14829
==========================================
+ Hits 10577 10580 +3
+ Misses 3475 3474 -1
+ Partials 777 775 -2
Continue to review full report at Codecov.
|
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, weird coincidence I was gonna make the same PR today since I wanted to introduce new event properties also :)
testutil/event/helper.go
Outdated
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and |
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.
super nit: filename config.go
instead of helper.go
?
0243bb8
to
4200976
Compare
This is a refactor in prep of making code review changes suggested in #5491
Problem
Solution
Config
interface similar to Introduce Config interfaces #4598 and add methods to access fields needed.The other change in this PR is
testutil.event
package to avoid circular dependencies and use it everywhere in tests to initialize test.