Documentation ¶
Index ¶
- func AssertInt(target int, expectation int, t *testing.T) bool
- func AssertMultistatusXML(target, expectation string, t *testing.T)
- func AssertResourceData(rpath, expectation string, t *testing.T)
- func AssertResourceDoesNotExist(rpath string, t *testing.T)
- func AssertResourceExists(rpath string, t *testing.T)
- func AssertStr(target string, expectation string, t *testing.T)
- type FakeStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertMultistatusXML ¶
func AssertResourceData ¶
func AssertResourceExists ¶
Types ¶
type FakeStorage ¶
func NewFakeStorage ¶
func NewFakeStorage() FakeStorage
Creates a fake storage to be used in unit tests. TODO: for now it's just creating a storage based of the default file storage. Would be better having an in-memory storage instead and make use of a stubbed fake storage to make unit tests faster.
func (FakeStorage) AddFakeResource ¶
func (s FakeStorage) AddFakeResource(collection, name, data string)
Click to show internal directories.
Click to hide internal directories.