@@ -68,8 +68,12 @@ void main() {
6868 );
6969 workspaceRoot = fileSystem.path.absolute ('workspace' );
7070 fileSystem.file (fileSystem.path.join (workspaceRoot, '.git' )).createSync (recursive: true );
71- processManager.runMock['git config --get core.hooksPath' ] =
72- ProcessResult (0 , 0 , 'script/githooks\n ' , '' );
71+ processManager.runMock['git config --get core.hooksPath' ] = ProcessResult (
72+ 0 ,
73+ 0 ,
74+ 'script/githooks\n ' ,
75+ '' ,
76+ );
7377 printLogs.clear ();
7478 });
7579
@@ -93,9 +97,9 @@ void main() {
9397 });
9498
9599 test ('fails when a broken symlink is present' , () async {
96- final Directory skillsDir = fileSystem
97- . directory ( fileSystem.path.join (workspaceRoot, '.agents' , 'skills' ))
98- ..createSync (recursive: true );
100+ final Directory skillsDir = fileSystem. directory (
101+ fileSystem.path.join (workspaceRoot, '.agents' , 'skills' ),
102+ ) ..createSync (recursive: true );
99103
100104 // MemoryFileSystem supports links
101105 final Link link = fileSystem.link (fileSystem.path.join (skillsDir.path, 'broken_link' ));
@@ -104,7 +108,9 @@ void main() {
104108 final bool result = await runChecker ();
105109 expect (result, isFalse);
106110 expect (
107- printLogs.any ((line) => line.contains ('Found broken symlinks in .agents/skills:' )), isTrue);
111+ printLogs.any ((line) => line.contains ('Found broken symlinks in .agents/skills:' )),
112+ isTrue,
113+ );
108114 });
109115
110116 test ('fails when git is dirty' , () async {
@@ -117,9 +123,11 @@ void main() {
117123 final bool result = await runChecker ();
118124 expect (result, isFalse);
119125 expect (
120- printLogs,
121- contains (
122- 'Error: Git working directory is not clean. Please commit or stash your changes before starting new work.' ));
126+ printLogs,
127+ contains (
128+ 'Error: Git working directory is not clean. Please commit or stash your changes before starting new work.' ,
129+ ),
130+ );
123131 });
124132
125133 test ('fails when git hooks are not configured' , () async {
@@ -142,8 +150,12 @@ void main() {
142150 .directory (fileSystem.path.join (workspaceRoot, '.agents' , 'skills' ))
143151 .createSync (recursive: true );
144152
145- processManager.runMock['git config --get core.hooksPath' ] =
146- ProcessResult (0 , 0 , 'other/hooks\n ' , '' );
153+ processManager.runMock['git config --get core.hooksPath' ] = ProcessResult (
154+ 0 ,
155+ 0 ,
156+ 'other/hooks\n ' ,
157+ '' ,
158+ );
147159
148160 final bool result = await runChecker ();
149161 expect (result, isFalse);
@@ -190,24 +202,26 @@ void main() {
190202 expect (printLogs, contains ('Error: Failed to resolve dependencies.' ));
191203 });
192204
193- test ('does not return early and reports multiple failures if git is dirty and tools are missing' ,
194- () async {
195- fileSystem
196- .directory (fileSystem.path.join (workspaceRoot, '.agents' , 'skills' ))
197- .createSync (recursive: true );
205+ test (
206+ 'does not return early and reports multiple failures if git is dirty and tools are missing' ,
207+ () async {
208+ fileSystem
209+ .directory (fileSystem.path.join (workspaceRoot, '.agents' , 'skills' ))
210+ .createSync (recursive: true );
198211
199- // Git returns dirty
200- processManager.runMock['git status --porcelain' ] = ProcessResult (0 , 0 , ' M file.txt\n ' , '' );
201- // Flutter is missing
202- processManager.canRunMock['flutter' ] = false ;
212+ // Git returns dirty
213+ processManager.runMock['git status --porcelain' ] = ProcessResult (0 , 0 , ' M file.txt\n ' , '' );
214+ // Flutter is missing
215+ processManager.canRunMock['flutter' ] = false ;
203216
204- final bool result = await runChecker ();
205- expect (result, isFalse);
217+ final bool result = await runChecker ();
218+ expect (result, isFalse);
206219
207- // Both errors should be printed
208- expect (printLogs.any ((line) => line.contains ('Git working directory is not clean' )), isTrue);
209- expect (printLogs.any ((line) => line.contains ("'flutter' is not on the PATH" )), isTrue);
210- });
220+ // Both errors should be printed
221+ expect (printLogs.any ((line) => line.contains ('Git working directory is not clean' )), isTrue);
222+ expect (printLogs.any ((line) => line.contains ("'flutter' is not on the PATH" )), isTrue);
223+ },
224+ );
211225
212226 group ('Windows style' , () {
213227 late MemoryFileSystem winFileSystem;
@@ -229,22 +243,29 @@ void main() {
229243 });
230244
231245 test ('fails when a broken symlink is present on Windows' , () async {
232- final Directory skillsDir = winFileSystem
233- . directory ( winFileSystem.path.join (winWorkspaceRoot, '.agents' , 'skills' ))
234- ..createSync (recursive: true );
246+ final Directory skillsDir = winFileSystem. directory (
247+ winFileSystem.path.join (winWorkspaceRoot, '.agents' , 'skills' ),
248+ ) ..createSync (recursive: true );
235249
236250 final Link link = winFileSystem.link (winFileSystem.path.join (skillsDir.path, 'broken_link' ));
237251 link.createSync ('non_existent_target' );
238252
239253 final bool result = await winChecker.checkReadiness (winWorkspaceRoot);
240254 expect (result, isFalse);
241- expect (printLogs.any ((line) => line.contains ('Found broken symlinks in .agents/skills:' )),
242- isTrue);
255+ expect (
256+ printLogs.any ((line) => line.contains ('Found broken symlinks in .agents/skills:' )),
257+ isTrue,
258+ );
243259 });
244260
245261 test ('passes when git hooks use Windows backslashes' , () async {
246- processManager.runMock['git config --get core.hooksPath' ] =
247- ProcessResult (0 , 0 , r'script\githooks' '\n ' , '' );
262+ processManager.runMock['git config --get core.hooksPath' ] = ProcessResult (
263+ 0 ,
264+ 0 ,
265+ r'script\githooks'
266+ '\n ' ,
267+ '' ,
268+ );
248269 processManager.runMock['git status --porcelain' ] = ProcessResult (0 , 0 , '' , '' );
249270
250271 final bool result = await winChecker.checkReadiness (winWorkspaceRoot);
0 commit comments