kinesis-consumer/s3_emitter_test.go
Harlow Ward 06b40e6ed8 Base pipeline components
* Create base Interfaces for Pipeline
* Add first base implementations for Pipeline
* Add initial test for core functionality
2014-11-14 20:45:34 -08:00

18 lines
282 B
Go

package connector
import (
"fmt"
"testing"
"time"
)
func TestS3FileName(t *testing.T) {
d := time.Now().UTC().Format("2006-01-02")
n := fmt.Sprintf("/%v/a-b.txt", d)
e := S3Emitter{}
f := e.S3FileName("a", "b")
if f != n {
t.Errorf("S3FileName() = want %v", f, n)
}
}