(user)
| 386 | |
| 387 | |
| 388 | def java_for_user(user): |
| 389 | strings = [] |
| 390 | for category in categories.keys(): |
| 391 | for command in categories[category]: |
| 392 | if command['user'] == user: |
| 393 | strings.append(java_for(command, user)) |
| 394 | func = user_to_func[user] |
| 395 | all_strings = ''.join(strings) |
| 396 | return ''' |
| 397 | public void %(func)s() { |
| 398 | %(all_strings)s |
| 399 | } |
| 400 | ''' % locals() |
| 401 | |
| 402 | |
| 403 | def write_java(out): |
no test coverage detected