Commit 96aac30
internal/glfw: explain the xlibcheck test's package
xlibcheck_linbsd_test.go declares package glfw, while every other test
in this package declares package glfw_test. Its comment called it a
white-box test without saying why an external test package is not an
option.
State the reason: the test compares the memory layout of the unexported
Xlib mirror types against the C headers, and an external test package
would need a bridge that assembles the whole comparison table inside
package glfw anyway.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 9da54ef commit 96aac30
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
0 commit comments