go_sysutils/auger/funcs_test.go
brent saner 2d5c0865c7
v1.8.1
ADDED:
* A way to actually use Auger externally. lel.
2024-10-29 11:57:19 -04:00

25 lines
295 B
Go

package auger
import (
"testing"
`honnef.co/go/augeas`
)
func TestNewAuger(t *testing.T) {
var aug *Aug
var augUnder augeas.Augeas
var err error
if aug, err = NewAuger("/", "", nil); err != nil {
t.Fatal(err)
}
augUnder = aug.aug
aug = NewAugerFromAugeas(augUnder)
_ = aug
}