• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperdriven / hyperdrive / 118
86%

Build:
DEFAULT BRANCH: master
Ran 20 Mar 2017 09:12PM UTC
Jobs 2
Files 10
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
118

push

travis-ci

web-flow
adds `param` struct tag (#50)

Given an `Endpointer` struct like this one:

```go
type TaggedStruct struct {
	*Endpoint
	TestParam         string `param:"test_param;a=GET,PUT;r=PUT"`
	TestParamDefault  string `param:"test_param_default"`
	TestParamEmpty    string `param:""`
	TestParamRequired string `param:"test_param_required;a=GET;r=PUT"`
}
```

We apply the following parsing rules:

- `TestParam` has specified `test_param` as the `key` which will map the
incoming input from an HTTP request to the field on the endpoint. It has
also specified `GET` and `PUT` requests to allow the param. Other
requests will strip it out (when that gets implemented). It has
specified `PUT` to require the param. `PUT` requests will throw an error
if `test_param` is not present in the request (when that gets implemented).
- `TestParamDefault` has specified a `key` of `test_param_default`. It
will default to allowing the param on `GET`, `PATCH`, `POST` and `PUT`
requests, and not require it on any of those allowed requests.
- `TestParamEmpty` has not specified any directives, and will use
`TestParamEmpty` as the `key`. It will allow the param on `GET`, `PATCH`,
`POST` and `PUT` requests, which is the default, and not require it on
any of the allowed requests.
- `TestParamRequired` will allow and require `PUT` requests, even though
`PUT` was omitted from the `allowed` list.

fixes #49

56 of 56 new or added lines in 1 file covered. (100.0%)

263 of 315 relevant lines covered (83.49%)

142.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 118.1 20 Mar 2017 09:13PM UTC 0
83.49
Travis Job 118.1
2 118.2 20 Mar 2017 09:12PM UTC 0
83.49
Travis Job 118.2
Source Files on build 118
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #118
  • c216382e on github
  • Prev Build on master (#114)
  • Next Build on master (#122)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc