func testSingleFileFuncs(upstreamHasSynced func() bool) (start func(), finished func(), hasSynced func() bool) { … } func testAsyncFuncs(upstreamHasSynced func() bool) (start func(), finished func(), hasSynced func() bool) { … } func TestBasicLogic(t *testing.T) { … } func TestAsyncLocking(t *testing.T) { … } func TestSingleFileCounting(t *testing.T) { … } func TestSingleFile(t *testing.T) { … } func TestNoStaleValue(t *testing.T) { … }