Skip to content

very VERY small helper for running my revel tests

Notifications You must be signed in to change notification settings

tkrtmy/revel_mock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Revel Mock

very VERY small helper for running my revel tests

it will just mock a controller and making controller unit tests easier.

Usage

  result, ok := (controllers.App{revel_mock.MockController("App","Index")}.Index()).(*revel.RenderTemplateResult)
  t.Assert(ok) //succeeded creating rendertemplate result
  t.Assert(result.RenderArgs["variable"] == value)

About

very VERY small helper for running my revel tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%