Skip to content

Commit 7c95f96

Browse files
committed
test(os): rename TestOs_* -> TestOS_* — uppercase acronym (AX-1)
Snider's casing ruling: industry-standard acronyms stay uppercase (OS, not Os). Pure identifier rename across the os Good/Bad/Ugly triplets; no exported Os-cased symbols exist in source, so scope is test names only. Scoped to core/go os files — Http/Url/Id sweep is v0.11.0. Co-Authored-By: Virgil <virgil@lethean.io>
1 parent 43738c6 commit 7c95f96

2 files changed

Lines changed: 121 additions & 121 deletions

File tree

os_nofollow_unix_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import . "dappco.re/go"
1212

1313
// Good — opening a regular (non-symlink) final component with O_NOFOLLOW
1414
// succeeds exactly as a normal create-or-write would.
15-
func TestOs_OpenFile_NOFOLLOW_Good(t *T) {
15+
func TestOS_OpenFile_NOFOLLOW_Good(t *T) {
1616
path := Path(t.TempDir(), "agent.log")
1717

1818
r := OpenFile(path, O_CREATE|O_EXCL|O_NOFOLLOW|O_WRONLY, 0o600)
@@ -24,7 +24,7 @@ func TestOs_OpenFile_NOFOLLOW_Good(t *T) {
2424

2525
// Bad — the final component is a symlink, so O_NOFOLLOW refuses the open
2626
// and the Result reports the failure.
27-
func TestOs_OpenFile_NOFOLLOW_Bad(t *T) {
27+
func TestOS_OpenFile_NOFOLLOW_Bad(t *T) {
2828
dir := t.TempDir()
2929
target := Path(dir, "real.log")
3030
link := Path(dir, "current.log")
@@ -39,7 +39,7 @@ func TestOs_OpenFile_NOFOLLOW_Bad(t *T) {
3939
// Ugly — a dangling symlink (target does not exist) opened for read with
4040
// O_NOFOLLOW still fails: the refusal fires on the link itself, not the
4141
// resolved destination.
42-
func TestOs_OpenFile_NOFOLLOW_Ugly(t *T) {
42+
func TestOS_OpenFile_NOFOLLOW_Ugly(t *T) {
4343
dir := t.TempDir()
4444
link := Path(dir, "dangling.log")
4545
RequireNoError(t, SymlinkForTest(Path(dir, "nowhere.log"), link))

0 commit comments

Comments
 (0)