Documentation ¶
Index ¶
- type StoreTests
- func (suite *StoreTests) TestDeletedIsUnavailable()
- func (suite *StoreTests) TestDeletedUnknownReturnsNotFound()
- func (suite *StoreTests) TestFetchAllChangedConclusion()
- func (suite *StoreTests) TestFetchByConclusion()
- func (suite *StoreTests) TestFetchOne()
- func (suite *StoreTests) TestFetchUnknownReturnsError()
- func (suite *StoreTests) TestFetchWithConclusionSearch()
- func (suite *StoreTests) TestFetchWithExclusions()
- func (suite *StoreTests) TestFetchWithOffset()
- func (suite *StoreTests) TestOriginalIsAvailable()
- func (suite *StoreTests) TestSaveIsLive()
- func (suite *StoreTests) TestUpdateUnknownReturnsError()
- func (suite *StoreTests) TestUpdatedIsLive()
- func (suite *StoreTests) TestVersionedFetchAll()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoreTests ¶
StoreTests is a testing suite which makes sure that a Store obeys the interface contract
func (*StoreTests) TestDeletedIsUnavailable ¶
func (suite *StoreTests) TestDeletedIsUnavailable()
TestDeletedIsUnavailable makes sure the backend doesn't return arguments that have been deleted.
func (*StoreTests) TestDeletedUnknownReturnsNotFound ¶
func (suite *StoreTests) TestDeletedUnknownReturnsNotFound()
TestDeletedUnknownReturnsNotFound makes sure the backend returns a NotFoundError if asked to delete an unknown entry.
func (*StoreTests) TestFetchAllChangedConclusion ¶
func (suite *StoreTests) TestFetchAllChangedConclusion()
TestFetchAllChangedConclusion makes sure the store finds live versions which have a different conclusion from when they started.
func (*StoreTests) TestFetchByConclusion ¶
func (suite *StoreTests) TestFetchByConclusion()
TestFetchByConclusion makes sure the Store returns all the arguments for a conclusion.
func (*StoreTests) TestFetchOne ¶
func (suite *StoreTests) TestFetchOne()
TestFetchOne makes sure the Store limits how many objects it returns properly.
func (*StoreTests) TestFetchUnknownReturnsError ¶
func (suite *StoreTests) TestFetchUnknownReturnsError()
TestFetchUnknownReturnsError makes sure the backend returns errors when asked for an unknown ID.
func (*StoreTests) TestFetchWithConclusionSearch ¶
func (suite *StoreTests) TestFetchWithConclusionSearch()
TestFetchWithConclusionSearch makes sure the Store limits what it returns based on which words the user expects the conclusion to have.
func (*StoreTests) TestFetchWithExclusions ¶
func (suite *StoreTests) TestFetchWithExclusions()
TestFetchWithExclusions makes sure the Store excludes arguments properly.
func (*StoreTests) TestFetchWithOffset ¶
func (suite *StoreTests) TestFetchWithOffset()
TestFetchWithOffset makes sure the Store skips elements properly when given an offset.
func (*StoreTests) TestOriginalIsAvailable ¶
func (suite *StoreTests) TestOriginalIsAvailable()
TestOriginalIsAvailable makes sure that old versions of updated arguments can still be fetched.
func (*StoreTests) TestSaveIsLive ¶
func (suite *StoreTests) TestSaveIsLive()
TestSaveIsLive makes sure that an argument is "live" immediately after being saved.
func (*StoreTests) TestUpdateUnknownReturnsError ¶
func (suite *StoreTests) TestUpdateUnknownReturnsError()
TestUpdateUnknownReturnsError makes sure that we can't update arguments which don't exist.
func (*StoreTests) TestUpdatedIsLive ¶
func (suite *StoreTests) TestUpdatedIsLive()
TestUpdatedIsLive makes sure that a newly updated argument uses the latest premises.
func (*StoreTests) TestVersionedFetchAll ¶
func (suite *StoreTests) TestVersionedFetchAll()
TestVersionedFetchAll makes sure the Store returns the argument's live version only.