Skip to content

Unit test corpusgenerator#1267

Merged
francescayeye merged 3 commits intoelastic:mainfrom
francescayeye:unit-test-corpusgenerator
May 22, 2023
Merged

Unit test corpusgenerator#1267
francescayeye merged 3 commits intoelastic:mainfrom
francescayeye:unit-test-corpusgenerator

Conversation

@francescayeye
Copy link
Copy Markdown

We'll soon release a new version of the corpus generator tool

the the signature of the function used from the dependency didn't change:
new

func NewGeneratorWithTextTemplate(tpl []byte, cfg Config, fields Fields, totEvents uint64) (*GeneratorWithTextTemplate, error) {

v0.5.0

func NewGeneratorWithTextTemplate(tpl []byte, cfg Config, fields Fields, totSize uint64) (*GeneratorWithTextTemplate, error) {

just the last uint64 has a different meaning, so nothing will break: just the number of events generated will be different

here we add a unit test to check the expected number of events so when dependabot will create the PR for the bump will fail

@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @aspacca

Copy link
Copy Markdown
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for adding this unit test 👍

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.

3 participants