25 lines
295 B
Go
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
|
||
|
}
|