Commit 6376cfc
authored
236 (#318)
* #237 test: add comprehensive tests for turnkey domain
Added complete test coverage for src/turnkey/domain.rs:
- Added 17 unit tests for TurnkeyErrorKind and TurnkeyError
- Added 10 doctests for all public types and methods
- Added module-level documentation
- Tested Display implementations for both enum and struct
- Tested Clone, PartialEq, Eq traits
- Tested TurnkeyError::new with various input types
- Verified map_turnkey_kind mappings
Test results:
- Unit tests: 386 passed (was 367, +19)
- Doctests: 10 for turnkey::domain module
- Clippy: no warnings
- Formatting: compliant with rustfmt
Coverage:
- TurnkeyErrorKind: 100%
- TurnkeyError: 100%
- map_turnkey_kind: 100%
* #236 test: add comprehensive tests for turnkey conversions
Added complete test coverage for src/turnkey/conversions.rs:
- Added 14 unit tests for From trait implementations
- Added 3 doctests for both conversion methods
- Added module-level documentation with examples
- Tested all TurnkeyErrorKind to AppErrorKind conversions
- Tested all TurnkeyError to AppError conversions
- Verified message preservation (empty, unicode, long messages)
- Verified correct error kind mapping for all variants
Test results:
- Unit tests: 45 turnkey tests passed (was 31, +14)
- Doctests: 3 for turnkey::conversions module
- Clippy: no warnings
- Formatting: compliant with rustfmt
Coverage:
- From<TurnkeyErrorKind> for AppErrorKind: 100%
- From<TurnkeyError> for AppError: 100%
* #236 test: add comprehensive coverage for src/turnkey/conversions.rs
- Test all TurnkeyErrorKind to AppErrorKind conversions
- Test all TurnkeyError to AppError conversions
- Test edge cases: empty messages, long messages, unicode
- Coverage: 33.33% -> 100%1 parent a7a439c commit 6376cfc
1 file changed
+114
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
0 commit comments