LCOV - code coverage report
Current view: top level - simulation/ai/common-api - class.js (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 11 0.0 %
Date: 2023-04-02 12:52:40 Functions: 0 3 0.0 %

          Line data    Source code
       1           0 : var API3 = function(m)
       2             : {
       3             : /**
       4             :  * Provides a nicer syntax for defining classes,
       5             :  * with support for OO-style inheritance.
       6             :  */
       7           0 : m.Class = function(data)
       8             : {
       9             :         let ctor;
      10           0 :         if (data._init)
      11           0 :                 ctor = data._init;
      12             :         else
      13           0 :                 ctor = function() { };
      14             : 
      15           0 :         if (data._super)
      16           0 :                 ctor.prototype = { "__proto__": data._super.prototype };
      17             : 
      18           0 :         for (let key in data)
      19           0 :                 ctor.prototype[key] = data[key];
      20             : 
      21           0 :         return ctor;
      22             : };
      23             : 
      24           0 : return m;
      25             : 
      26             : }(API3);

Generated by: LCOV version 1.14