Commit d217b3b
committed
dns: Fix clang-format violations and Copilot comment in hostname_test.cc
- Apply clang-format (LLVM style) to four code blocks that violated
line-length / alignment rules under --dry-run -Werror:
valid_label_exactly_63: collapse two-line EXPECT_TRUE to one line
invalid_label_64: collapse two-line EXPECT_FALSE to one line
invalid_fullwidth_dot: split adjacent string literal across two lines
invalid_high_bit_byte / invalid_nul_byte: align string_view
initialiser list per LLVM column rules
- Update comment on invalid_empty: replace "<name> requires at least
one <let>" with "<hname> requires at least one <name> / label"
(Copilot review: original phrasing was inaccurate given the RFC 1123
§2.1 relaxation that allows digit-first labels)
All 44 tests still pass.
Signed-off-by: Tushar Verma <tusharmyself06@gmail.com>1 parent 7478815 commit d217b3b
1 file changed
Lines changed: 11 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
127 | | - | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
202 | 201 | | |
203 | 202 | | |
204 | 203 | | |
205 | | - | |
206 | | - | |
| 204 | + | |
207 | 205 | | |
208 | 206 | | |
209 | 207 | | |
| |||
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
237 | | - | |
| 235 | + | |
| 236 | + | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
242 | | - | |
243 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
0 commit comments