gosora/experimental/counterTree/tree_test.go
Azareal 3fca8114f0 Added a counter tree experiment.
Added more logging for odd user agents.
2018-01-11 09:29:25 +00:00

25 lines
346 B
Go

package main
import (
"log"
"testing"
)
func TestCounter(t *testing.T) {
counter := newTreeTopicViewCounter()
counter.Bump(1)
counter.Bump(57)
counter.Bump(58)
counter.Bump(59)
counter.Bump(9)
}
func TestScope(t *testing.T) {
var outVar int
closureHolder := func() {
outVar = 2
}
closureHolder()
log.Print("outVar: ", outVar)
}