// Sets package-level testRepo and TestVersionID func initTestRepo() (dvid.UUID, dvid.VersionID) { testMu.Lock() defer testMu.Unlock() if dtype == nil { var err error dtype, err = datastore.TypeServiceByName(TypeName) if err != nil { log.Fatalf("Can't get multichan16 type: %v\n", err) } } return tests.NewRepo() }
// Sets package-level testRepo and TestVersionID func initTestRepo() (dvid.UUID, dvid.VersionID) { testMu.Lock() defer testMu.Unlock() if mstype == nil { var err error mstype, err = datastore.TypeServiceByName(TypeName) if err != nil { log.Fatalf("Can't get imagetile type: %s\n", err) } grayscaleT, err = datastore.TypeServiceByName("uint8blk") if err != nil { log.Fatalf("Can't get grayscale type: %s\n", err) } } return tests.NewRepo() }
// Sets package-level testRepo and TestVersionID func initTestRepo() (dvid.UUID, dvid.VersionID) { testMu.Lock() defer testMu.Unlock() if labelsT == nil { var err error labelsT, err = datastore.TypeServiceByName("labelblk") if err != nil { log.Fatalf("Can't get labelblk type: %s\n", err) } rgbaT, err = datastore.TypeServiceByName("rgba8blk") if err != nil { log.Fatalf("Can't get rgba8blk type: %s\n", err) } } return tests.NewRepo() }
// Sets package-level testRepo and TestVersionID func initTestRepo() (dvid.UUID, dvid.VersionID) { testMu.Lock() defer testMu.Unlock() if grayscaleT == nil { var err error grayscaleT, err = datastore.TypeServiceByName("uint8blk") if err != nil { log.Fatalf("Can't get uint8blk type: %s\n", err) } rgbaT, err = datastore.TypeServiceByName("rgba8blk") if err != nil { log.Fatalf("Can't get rgba8blk type: %s\n", err) } roiT, err = datastore.TypeServiceByName("roi") if err != nil { log.Fatalf("Can't get ROI type: %s\n", err) } } return tests.NewRepo() }