Searched refs:mockFile (Results 1 – 7 of 7) sorted by relevance
27 MockFile mockFile;31 mockFile = MockFile();33 when(mockFileSystem.file(any)).thenReturn(mockFile);34 when(mockFile.readAsBytesSync()).thenReturn(utf8.encode(packagesContents));62 final MockFile mockFile = MockFile();64 when(mockFileSystem.file(any)).thenReturn(mockFile);65 when(mockFile.readAsBytesSync())
27 MockFile mockFile;33 mockFile = MockFile();57 when(mockFileSystem.file(argThat(endsWith('lockfile')))).thenReturn(mockFile);58 when(mockFile.openSync(mode: anyNamed('mode'))).thenReturn(mockRandomAccessFile);67 when(mockFileSystem.file(argThat(endsWith('lockfile')))).thenReturn(mockFile);68 when(mockFile.openSync(mode: anyNamed('mode'))).thenThrow(const FileSystemException());
74 final MockFile mockFile = MockFile();76 when(mockFileSystem.file('test')).thenReturn(mockFile);77 when(mockFile.existsSync()).thenReturn(true);
18 export function mockFile() { function
182 import { mockFile } from './system_file'202 return mockFile();
158 MockFile mockFile;165 mockFile = MockFile();175 when(mockFile.absolute).thenReturn(mockFile);176 when(mockFile.path).thenReturn('');206 sshConfig: mockFile,207 devFinder: mockFile,
220 final MockFile mockFile = MockFile();221 when(mockFile.path).thenReturn(fs.path.join('some', 'path', 'to', 'screenshot.png'));222 await deviceUnderTest.takeScreenshot(mockFile);