MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / symlinksWork

Function symlinksWork

internal/instructions/install_test.go:12–21  ·  view source on GitHub ↗

symlinksWork reports whether the OS lets this process create symlinks.

(t *testing.T)

Source from the content-addressed store, hash-verified

10
11// symlinksWork reports whether the OS lets this process create symlinks.
12func symlinksWork(t *testing.T) bool {
13 t.Helper()
14 dir := t.TempDir()
15 target := filepath.Join(dir, "lnk")
16 if err := os.Symlink(filepath.Join(dir, "src"), target); err != nil {
17 return false
18 }
19 os.Remove(target)
20 return true
21}
22
23func TestSymlinkInstall(t *testing.T) {
24 if !symlinksWork(t) {

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected