2020-01-29 16:57:42 -07:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestParseErrata(t *testing.T) {
|
2020-02-24 18:05:00 -07:00
|
|
|
got, err := ParseRemoteErrata("https://www.openbsd.org/errata66.html")
|
2020-01-29 16:57:42 -07:00
|
|
|
if err != nil {
|
|
|
|
t.Error(err)
|
|
|
|
}
|
2020-02-24 18:05:00 -07:00
|
|
|
l := len(got.List)
|
2020-01-29 16:57:42 -07:00
|
|
|
if l == 0 {
|
|
|
|
t.Errorf("errata count %d; want > 0", l)
|
|
|
|
}
|
|
|
|
}
|