(mode codersdk.ChatPlanMode)
| 461 | } |
| 462 | |
| 463 | func planModeToNullChatPlanMode(mode codersdk.ChatPlanMode) database.NullChatPlanMode { |
| 464 | if mode == "" { |
| 465 | return database.NullChatPlanMode{} |
| 466 | } |
| 467 | return database.NullChatPlanMode{ |
| 468 | ChatPlanMode: database.ChatPlanMode(mode), |
| 469 | Valid: true, |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | func validateChatPlanMode(mode codersdk.ChatPlanMode) bool { |
| 474 | switch mode { |
no test coverage detected