mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-12-22 22:06:29 +00:00
Vincent Batts
08b1000418
The current Vis() and Unvis() are using the C implementation from MTREE(8). But that means that cgo is used, which is not always desired. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
15 lines
390 B
Go
15 lines
390 B
Go
// +build cgo,!govis
|
|
|
|
package cvis
|
|
|
|
import "testing"
|
|
|
|
// The resulting string of Vis output could potentially be four times longer than
|
|
// the original. Vis must handle this possibility.
|
|
func TestVisLength(t *testing.T) {
|
|
testString := "All work and no play makes Jack a dull boy\n"
|
|
for i := 0; i < 20; i++ {
|
|
Vis(testString, DefaultVisFlags)
|
|
testString = testString + testString
|
|
}
|
|
}
|