()
| 202 | } |
| 203 | |
| 204 | func (c *testControllerEndRequestAwareness) Get() { |
| 205 | username := c.Ctx.Params().Get("username") |
| 206 | c.Ctx.Values().Set(c.Ctx.Application().ConfigurationReadOnly().GetViewDataContextKey(), |
| 207 | map[string]interface{}{ |
| 208 | "TestModel": Model{Username: username}, |
| 209 | "myModel": Model{Username: username + "2"}, |
| 210 | }) |
| 211 | } |
| 212 | |
| 213 | func writeModels(ctx *context.Context, names ...string) { |
| 214 | if expected, got := len(names), len(ctx.GetViewData()); expected != got { |
nothing calls this directly
no test coverage detected