(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestApplication_SetApprover(t *testing.T) { |
| 188 | cleanup, err := setupTestDir("../") |
| 189 | if err != nil { |
| 190 | t.Fatalf(err.Error()) |
| 191 | } |
| 192 | |
| 193 | defer cleanup() |
| 194 | |
| 195 | setTestApplication("project") |
| 196 | app := Application{} |
| 197 | |
| 198 | app.SetApprover() |
| 199 | |
| 200 | if app.ApproverId != 123 { |
| 201 | t.Errorf("SetApprover() set ApproverId to %d, expected 123", app.ApproverId) |
| 202 | } |
| 203 | |
| 204 | if app.ApproverUsername != "wendyappleseed" { |
| 205 | t.Errorf("SetApprover() set ApproverUsername to %s, expected wendyappleseed", app.ApproverUsername) |
| 206 | } |
| 207 | } |
nothing calls this directly
no test coverage detected