top

Package coordinatetest provides generic functional tests for the Coordinate interface. These need to be copied into individual backends' test directories, perhaps by using the cptest support program. A typical backend test module additionally needs to set Clock and Coordinate in either an init or TestMain function.

package mybackend

import (
        "github.com/diffeo/go-coordinate/coordinate/coordinatetest"
)

func init() {
        coordinatetest.Coordinate = NewWithClock(coordinatetest.Clock)
}

Imported only in test by 4 package(s)

  1. github.com/diffeo/go-coordinate/cache
  2. github.com/diffeo/go-coordinate/memory
  3. github.com/diffeo/go-coordinate/postgres
  4. github.com/diffeo/go-coordinate/restclient

Imports 4 package(s)

  1. github.com/diffeo/go-coordinate/coordinate
  2. github.com/stretchr/testify/assert
  3. github.com/benbjohnson/clock
  4. github.com/diffeo/go-coordinate/cborrpc