z_mirror/fmm
git clone https://git.raiguard.me/z_mirror/fmm
9387fd2
predep-parsing
1package main 2 3import ( 4"testing" 5) 6 7func TestModlistNew (t * testing.T ) { 8_ ,err := newModList ("TEST/mods/mod-list.json" ) 9if err != nil { 10t .Error (err ) 11 } 12} 13 14func TestModlistOps (t * testing.T ) { 15list ,err := newModList ("TEST/mods/mod-list.json" ) 16if err != nil { 17t .Error (err ) 18 } 19list .disable ("Unzipped" ) 20if list .isEnabled ("Unzipped" ) { 21t .Error ("Disable failed" ) 22 } 23list .enable ("Unzipped" ,nil ) 24if ! list .isEnabled ("Unzipped" ) { 25t .Error ("Enable failed" ) 26 } 27}