Set up more test structure.

geesefs-0-30-9
Aaron Jacobs 2015-03-20 11:25:15 +11:00
parent 87a08d4388
commit d6eb065a4d
1 changed files with 26 additions and 4 deletions

View File

@ -68,17 +68,39 @@ func (t *FlushFSTest) SetUp(ti *TestInfo) {
}
////////////////////////////////////////////////////////////////////////
// Test functions
// Helpers
////////////////////////////////////////////////////////////////////////
func (t *FlushFSTest) FlushesOnClose_NonOverlappingFileHandles() {
// Return a copy of the current contents of t.flushes.
//
// LOCKS_EXCLUDED(t.mu)
func (t *FlushFSTest) getFlushes() []string
// Return a copy of the current contents of t.fsyncs.
//
// LOCKS_EXCLUDED(t.mu)
func (t *FlushFSTest) getFsyncs() []string
////////////////////////////////////////////////////////////////////////
// Tests
////////////////////////////////////////////////////////////////////////
func (t *FlushFSTest) Close_NonOverlappingFileHandles() {
AssertTrue(false, "TODO")
}
func (t *FlushFSTest) FlushesOnClose_OverlappingFileHandles() {
func (t *FlushFSTest) Close_OverlappingFileHandles() {
AssertTrue(false, "TODO")
}
func (t *FlushFSTest) FlushesOnFsync() {
func (t *FlushFSTest) Close_ReadOnly() {
AssertTrue(false, "TODO")
}
func (t *FlushFSTest) Close_WriteOnly() {
AssertTrue(false, "TODO")
}
func (t *FlushFSTest) Fsync() {
AssertTrue(false, "TODO")
}