2018-07-20 17:43:22 +00:00
|
|
|
package testing
|
|
|
|
|
|
|
|
import (
|
2018-08-01 18:54:32 +00:00
|
|
|
"testing"
|
|
|
|
|
2018-07-20 17:43:22 +00:00
|
|
|
"github.com/influxdata/platform"
|
|
|
|
)
|
|
|
|
|
2018-08-01 18:54:32 +00:00
|
|
|
func idFromString(t *testing.T, s string) platform.ID {
|
2018-07-20 17:43:22 +00:00
|
|
|
id, err := platform.IDFromString(s)
|
|
|
|
if err != nil {
|
2018-08-01 18:54:32 +00:00
|
|
|
t.Fatal(err)
|
2018-07-20 17:43:22 +00:00
|
|
|
}
|
2018-07-30 14:29:52 +00:00
|
|
|
return *id
|
2018-07-20 17:43:22 +00:00
|
|
|
}
|