Use these specific prompt formats to leverage this comprehensive testing framework:
Generate unit tests for {ClassName} using #file:unit-test-generation-prompt.md
| First of all the UseCase suffix is not necessary. Also capsuling a function into a class where no dependencies are needed is also not necessary. Makes it more complex. You should use operator function "invoke" if you need a class for injecting deps and name the class like a function (ValidateEmail). You can call the instance easily like a function ("validateEmail(...)"). Really good readable. | |
| Example 2 is wrong IMHO. There is no such thing like the representation layer and a dogmatic assignment. Historically the splitting of View and Logic (Presenter, VM, Controller) was because of testing issues. The View isn't really good testable because of the huge framework which it brings with it. Therefore ALL code, which is testable should be tested and the View should have as less conditions (logic) as possible. It was always the responsibility of the Presenter (VM, Controller) to map the Data from different sources into an format the View can understand (ViewState) and which needs no further mapping/conditions (if |
| <?xml version='1.0' encoding='utf-8' standalone='yes' ?> | |
| <map> | |
| <int name="latest_version_number" value="2152" /> | |
| <string name="latest_version_name">29.62</string> | |
| <string name="apk_path">/storage/emulated/0/Android/data/com.teamsmart.videomanager.tv/cache/update.apk</string> | |
| <long name="last_checked_ms" value="1758737506894" /> | |
| </map> |
| { | |
| "barTypes": { | |
| "preview-chooseACategory": { | |
| "color": "#ffffff", | |
| "opacity": "0.7" | |
| }, | |
| "sponsor": { | |
| "color": "#00d400", | |
| "opacity": "0.7" | |
| }, |
| { | |
| "createdBy": "Redirector v3.5.3", | |
| "createdAt": "2025-09-25T15:30:27.101Z", | |
| "redirects": [ | |
| { | |
| "description": "Force WhatsApp links to open in WhatsApp Web", | |
| "exampleUrl": "https://api.whatsapp.com/send?phone=60123456789", | |
| "exampleResult": "https://web.whatsapp.com/send?phone=60123456789", | |
| "error": null, | |
| "includePattern": "https://api.whatsapp.com/*", |
| #!/bin/bash | |
| caffeinate -d & | |
| while true; | |
| do | |
| osascript -e 'tell application "Microsoft Teams" to activate' | |
| osascript -e 'tell application "System Events" to keystroke "2" using {command down}' | |
| echo "Teams Status Refreshed" | |
| sleep 300 | |
| done |
| version: 7 | |
| profiles: [] | |
| groups: [] | |
| configSync: | |
| parts: {} | |
| hotkeys: | |
| toggle-window: | |
| - Ctrl-Space | |
| copy-current-path: [] | |
| ctrl-c: |
| ########## Shell Configuration ########## | |
| if [[ -f "/opt/homebrew/bin/brew" ]] then | |
| # If you're using macOS, you'll want this enabled | |
| eval "$(/opt/homebrew/bin/brew shellenv)" | |
| fi | |
| # Set the directory we want to store zinit and plugins | |
| ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" |
| name: Deploy Notes SpringBoot Backend | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest |
| @Composable | |
| fun ScreenContent() { | |
| EdgeToEdgeDemoTheme { | |
| // Need to add Scaffold, and can apply Material 3 theme. Scaffold will automatically handle the window insets | |
| Scaffold( | |
| topBar = { | |
| TopAppBar( | |
| title = { Text("Hello world!") }, | |
| colors = TopAppBarDefaults.topAppBarColors( | |
| containerColor = Color(0xFF37B362) |