Skip to content
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

impl for #109 #187

Closed
wants to merge 6 commits into from
Closed

impl for #109 #187

wants to merge 6 commits into from

Conversation

SamYuan1990
Copy link
Member

ref to https://github.com/bojand/ghz/blob/ff10171546e3048d8bb2864207367935f2c43d1e/runner/calldata.go
defined key words and regex.
add ci for test with latest sample.

resolve #109

Signed-off-by: Sam Yuan yy19902439@126.com

Signed-off-by: Sam Yuan <yy19902439@126.com>
@SamYuan1990 SamYuan1990 requested a review from guoger July 17, 2021 14:08
Signed-off-by: Sam Yuan <yy19902439@126.com>
@SamYuan1990
Copy link
Member Author

will check and update later.

@SamYuan1990 SamYuan1990 marked this pull request as draft July 17, 2021 14:17
Signed-off-by: Sam Yuan <yy19902439@126.com>
@SamYuan1990 SamYuan1990 marked this pull request as ready for review July 17, 2021 14:34
@dexhunter
Copy link

I think using dynamic template will be a better solution than hard-written functions under the proposal. But this pr serves as a good work-around for dynamic args right now. thanks for this pr

Copy link

@dexhunter dexhunter left a comment

Choose a reason for hiding this comment

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

lgtm

@davidkhala davidkhala requested a review from a team August 11, 2021 09:49
Comment on lines +294 to +302
func stringWithCharset(length int, charset string) string {
b := make([]byte, length)
for i := range b {
b[i] = charset[seededRand.Intn(len(charset))]
}
return string(b)
}

func randomString(length int) string {
Copy link
Member

Choose a reason for hiding this comment

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

If it is only required by one func, how about merging them into one func?

Copy link
Member

@davidkhala davidkhala left a comment

Choose a reason for hiding this comment

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

LGTM

@stale
Copy link

stale bot commented Sep 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 21, 2021
@SamYuan1990 SamYuan1990 removed the stale label Sep 21, 2021
@stale
Copy link

stale bot commented Oct 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 21, 2021
@stale stale bot closed this Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Support input arguments templating
3 participants