add: method logparser tests

This commit is contained in:
Inanc Gumus
2019-05-10 22:08:17 +03:00
parent fc031225c4
commit 1b17dca434
30 changed files with 487 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
// For more tutorials: https://blog.learngoprogramming.com
//
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
package main
import (
"bufio"
"os"
)
func main() {
p := newParser()
in := bufio.NewScanner(os.Stdin)
for in.Scan() {
p.parse(in.Text())
}
summarize(p.summarize(), p.err(), in.Err())
}