Fast Link Checker for Markdown and HTML in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
317 B

package main
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestListFiles(t *testing.T) {
fs := listFiles(".")
assert.NotEqual(t, 0, len(fs))
for _, f := range fs {
i, err := os.Stat(f)
assert.True(t, isMarkupFile(f))
assert.Equal(t, nil, err)
assert.False(t, i.IsDir())
}
}