push
circleci
32 of 1275 new or added lines in 44 files covered. (2.51%)
15 existing lines in 1 file now uncovered.1803 of 3664 relevant lines covered (49.21%)
2724.12 hits per line
| 1 |
package main
|
|
| 2 |
|
|
| 3 |
import (
|
|
| 4 |
"github.com/jeffotoni/quick"
|
|
| 5 |
"github.com/jeffotoni/quick/middleware/msgid"
|
|
| 6 |
) |
|
| 7 |
|
|
|
NEW
|
func main() {
|
× |
|
NEW
|
q := quick.New() |
× |
|
NEW
|
|
× |
|
NEW
|
// Adding middleware msgid
|
× |
|
NEW
|
q.Use(msgid.New()) |
× |
|
NEW
|
|
× |
|
NEW
|
// Corrected route using :id instead of {id:[0-9]+}
|
× |
|
NEW
|
q.Get("/v1/user/:id", func(c *quick.Ctx) error { |
× |
|
NEW
|
c.Set("Content-Type", "application/json") |
× |
|
NEW
|
return c.Status(200).String("Quick ação total!!!") |
× |
|
NEW
|
}) |
× |
| 19 |
|
|
|
NEW
|
q.Listen(":8080")
|
× |
| 21 |
} |