(b *testing.B)
| 472 | } |
| 473 | |
| 474 | func BenchmarkConfigure(b *testing.B) { |
| 475 | s, _ := session.New() |
| 476 | |
| 477 | b.ResetTimer() |
| 478 | for i := 0; i < b.N; i++ { |
| 479 | mod := NewRestAPI(s) |
| 480 | s.Env.Set("api.rest.address", "127.0.0.1") |
| 481 | s.Env.Set("api.rest.port", "8081") |
| 482 | _ = mod.Configure() |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | // Tests for controller functionality |
| 487 | func TestCommandRequest(t *testing.T) { |
nothing calls this directly
no test coverage detected