示例#1
0
文件: store_test.go 项目: levcom/csfw
func TestTableStoreSliceIDs(t *testing.T) {

	t.Skip(TODO_Better_Test_Data)

	ids := testStores.Extract().StoreID()
	assert.NotNil(t, ids)
	assert.Equal(t, utils.Int64Slice{0, 5, 1, 4, 2, 6, 3}, ids)

	var ts = store.TableStoreSlice{}
	assert.Nil(t, ts.Extract().StoreID())
}
示例#2
0
文件: store_test.go 项目: levcom/csfw
func TestTableStoreSliceCodes(t *testing.T) {

	t.Skip(TODO_Better_Test_Data)

	codes := testStores.Extract().Code()
	assert.NotNil(t, codes)
	assert.Equal(t, utils.StringSlice{"admin", "au", "de", "uk", "at", "nz", "ch"}, codes)

	var ts = store.TableStoreSlice{}
	assert.Nil(t, ts.Extract().Code())
}