mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
test(processor): increase test coverage for parseISO8601Duration
This commit is contained in:
parent
b48e6472f5
commit
2cfeefc8d2
5 changed files with 88 additions and 35 deletions
|
@ -43,7 +43,7 @@ func fetchWatchTime(websiteURL, query string, isoDate bool) (int, error) {
|
|||
|
||||
ret := 0
|
||||
if isoDate {
|
||||
parsedDuration, err := parseISO8601(duration)
|
||||
parsedDuration, err := parseISO8601Duration(duration)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("unable to parse iso duration %s: %v", duration, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue