-
Notifications
You must be signed in to change notification settings - Fork 412
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
feature: result formatter extensibility with minor refactor and sever… #58
Conversation
@dsalahutdinov great pull request, thanks. #57 consolidates lots of things in the code, so it would be good to merge that before this PR, if you agree. |
@asciimoo , that's ok, i will renew my PR after merging of those |
@dsalahutdinov thanks. |
e8a590c
to
ecb483a
Compare
@asciimoo i've done |
.travis.yml
Outdated
@@ -9,9 +9,7 @@ os: | |||
env: | |||
- "PATH=/home/travis/gopath/bin:$PATH" | |||
script: | |||
- test -z "$(gofmt -l ./)" | |||
- test -z "$(go vet -v ./...)" | |||
- go build |
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, these checks would be still useful. Does go test
evaluate these too?
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.
Yeah, unless go test
already does it, the gofmt
check should definitely remain there. It's already caught a couple misformatted PRs.
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.
This looks great to me. I don't know if we should remove the previous Travis checks, but the go test
line you added is good.
+1, except for travis mods. @dsalahutdinov could you please add |
Yes. I'll do it soon. Having some holidays now |
ecb483a
to
a444ba3
Compare
@asciimoo , i've done |
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.
Awesome PR. Please fix that one minor note. Thanks
wuzz.go
Outdated
} | ||
} | ||
responseFormatter := formatter.New(a.config, req.ContentType) | ||
vrb.Title = "Response body (F9) " + responseFormatter.Title() |
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.
Could you use https://github.com/asciimoo/wuzz/blob/master/wuzz.go#L191 instead of hard-coding the title prefix?
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.
done, sorry for my inattention 😞
a444ba3
to
bf8090f
Compare
bf8090f
to
e6e3643
Compare
Thank you |
…al testsy
Hi. Some refactor to make adding new result view format depend of content-type easy