github.com/mantzas/incata@v0.3.0/mocks/event_test_data.go (about) 1 package mocks 2 3 import ( 4 "time" 5 ) 6 7 // TestData for testing purposes 8 type TestData struct { 9 Version int `json:"version"` 10 Name string `json:"name"` 11 Balance float32 `json:"balance"` 12 BirthDate time.Time `json:"birth_date"` 13 } 14 15 // GetTestData returns test data 16 func GetTestData() *TestData { 17 location, _ := time.LoadLocation("Europe/Athens") 18 19 return &TestData{ 20 Version: 1, 21 Name: "Joe", 22 Balance: 12.99, 23 BirthDate: time.Date(2015, 12, 13, 23, 59, 59, 0, location), 24 } 25 }