grim/resticide

fix the reporting stuff...
develop
2015-11-07, Gary Kramlich
87c6602316fb
Parents fb2f7eaf438d
Children c6038cec3b8c
fix the reporting stuff...
  • +0 -2
    main.go
  • +1 -7
    reporter.go
  • --- a/main.go Fri Nov 06 00:20:25 2015 -0600
    +++ b/main.go Sat Nov 07 21:36:11 2015 -0600
    @@ -13,8 +13,6 @@
    reporter := Reporter{}
    reporter.AddHandler(ConsoleReporter{*verbose})
    - fmt.Printf("handlers: %p\n", reporter.handlers)
    - fmt.Printf("nhandlers: %d\n", len(reporter.handlers))
    tests, err := LoadTests(*test_dir, &reporter)
    if err != nil {
    --- a/reporter.go Fri Nov 06 00:20:25 2015 -0600
    +++ b/reporter.go Sat Nov 07 21:36:11 2015 -0600
    @@ -1,9 +1,5 @@
    package main
    -import (
    - "fmt"
    -)
    -
    type ReportHandler interface {
    Start(tests int)
    Finish(tests int, passed int, failed int)
    @@ -25,10 +21,8 @@
    }
    }
    -func (reporter Reporter)AddHandler(handler ReportHandler) {
    - fmt.Printf("shandlers: %s\n", reporter.handlers)
    +func (reporter *Reporter)AddHandler(handler ReportHandler) {
    reporter.handlers = append(reporter.handlers, handler)
    - fmt.Printf("ehandlers: %s\n", reporter.handlers)
    }
    func (reporter Reporter)Start(tests int) {