Ejemplo n.º 1
0
// IsType asserts that the specified objects are of the same type.
func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) {
	if !assert.IsType(t, expectedType, object, msgAndArgs...) {
		t.FailNow()
	}
}
Ejemplo n.º 2
0
func TestClusterServices(t *testing.T) {
	services, _ := getClusterServices()

	assert.IsType(t, models.ECSServices{}, services)
	assert.Equal(t, 1, len(services))
}