Skip to content

Instantly share code, notes, and snippets.

View FrancisBourre's full-sized avatar

Francis Bourre FrancisBourre

  • Docler Holding
  • Luxembourg
View GitHub Profile
@FrancisBourre
FrancisBourre / gist:a450e8e422083d4321238f1971cda46f
Last active November 9, 2017 10:18
Injector code generation
//572 bytes
T.__INJECTION_DATA = { c : { a : [{ t : "hex.domain.Domain", n : "", o : false}]}, p : [{ p : "property", t : "hex.domain.Domain", n : "", o : true},{ p : "property2", t : "hex.domain.Domain", n : "", o : false}], m : [{ m : "test", a : [{ t : "String", n : "", o : false},{ t : "hex.domain.Domain", n : "", o : false}]}], pc : [{ m : "postConstruct0", a : [], o : 0},{ m : "postConstruct1", a : [], o : 1},{ m : "postConstruct2", a : [], o : 2}], pd : [{ m : "preDestroy0", a : [], o : 0},{ m : "preDestroy1", a : [], o : 1},{ m : "preDestroy2", a : [], o : 2}]};
//457 bytes
__ai: function(f) {
this.property = f("hex.domain.Domain","",null,false);
this.property2 = f("hex.domain.Domain","",null,false);
this.test(f("String","",null,false),f("hex.domain.Domain","",null,false));
this.postConstruct0();
this.postConstruct1();
@FrancisBourre
FrancisBourre / gist:9148024ef3ec7bddb74b5080934987c9
Last active February 22, 2017 06:35
Use MCover with hexUnit
static public function main() : Void
{
var emu = new ExMachinaUnitCore();
emu.addListener( new hex.unittest.notifier.BrowserUnitTestNotifier() );
emu.addListener( new LocalCodeCoverageListener() );
emu.addTest( HexCoreSuite );
emu.run();
}