TestWriteFileWriteErrorWhenTargetIsDir checks the (write error) branch: writing to an existing directory fails at os.WriteFile, and the error must come back in the output string. A directory target is root-safe, as above.
(t *testing.T)
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected