agent/pkg/agentic/paths_example_test.go
Virgil faf6b8b6fb fix(ax): unify home-path resolution
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 19:54:17 +01:00

49 lines
790 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import (
core "dappco.re/go/core"
)
func ExampleWorkspaceRoot() {
root := WorkspaceRoot()
core.Println(core.HasSuffix(root, "workspace"))
// Output: true
}
func ExampleCoreRoot() {
root := CoreRoot()
core.Println(core.HasSuffix(root, ".core"))
// Output: true
}
func ExampleHomeDir() {
home := HomeDir()
core.Println(home != "")
// Output: true
}
func ExamplePlansRoot() {
root := PlansRoot()
core.Println(core.HasSuffix(root, "plans"))
// Output: true
}
func ExampleAgentName() {
name := AgentName()
core.Println(name != "")
// Output: true
}
func ExampleGitHubOrg() {
org := GitHubOrg()
core.Println(org)
// Output: dAppCore
}
func ExampleLocalFs() {
f := LocalFs()
core.Println(f.Root())
// Output: /
}