97. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:36 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

97.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\utils\metrics metrics-data-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\utils\metrics metrics-data-spec.js Tue Oct 3 17:19:01 2017 UTC

97.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 132
Changed 2 4
Inserted 0 0
Removed 0 0

97.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

97.4 Active regular expressions

No regular expressions were active.

97.5 Comparison detail

  1   'use stric t';
  2  
  3   var Metric sData = re quire('./m etrics-dat a');
  4  
  5   describe(' Metrics da ta spec',  function()  {
  6       it('ca n create a n incoming  type with out config ', functio n() {
  7           va r metricDa ta = new M etricsData ('incoming ', null);
  8           ex pect(metri cData.isTy pe('incomi ng')).to.b e.truthy() ;
  9           ex pect(metri cData.path ).to.be.un defined();
  10       });
  11  
  12       it('ca n create a n incoming  type with  a valid r oute value ', functio n() {
  13           va r config =  {
  14                'route'  : {'path'  : 'path/pa th'}
  15           };
  16  
  17           va r metricDa ta = new M etricsData ('incoming ', config) ;
  18           ex pect(metri cData.isTy pe('incomi ng')).to.b e.truthy() ;
  19           ex pect(metri cData.path ).to.equal ('path/pat h');
  20       });
  21  
  22       it('ca n create a n outgoing  type', fu nction() {
  23           va r metricDa ta = new M etricsData ('outgoing ', null);
  24           ex pect(metri cData.isTy pe('outgoi ng')).to.b e.truthy() ;
  25       });
  26  
  27       it('ca n calculat e elapsed  time', fun ction() {
  28           va r metricDa ta = new M etricsData ('outgoing ', null);
  29  
  30           ex pect(metri cData.elap sedMillise conds).to. equal(0);
  31  
  32           me tricData.c alcElapsed Time();
  33           ex pect(metri cData.elap sedMillise conds).to. be.above(0 );
  34       });
  35  
  36       it('ca n add host  data', fu nction() {
  37           va r metricDa ta = new M etricsData ('outgoing ', null);
  38  
  39           ex pect(metri cData.host ).to.equal ('UNKNOWN' );
  40           ex pect(metri cData.host Name).to.e qual('UNKN OWN');
  41  
  42             metricData .addHost(' IP           ', 'jds');
  43  
  44             expect(met ricData.ho st.host).t o.equal(' IP           ');
  45           ex pect(metri cData.host .name).to. equal('jds ');
  46           ex pect(metri cData.host Name).to.e qual('jds' );
  47       });
  48  
  49       it('ca n set resu lt to succ ess', func tion() {
  50           va r metricDa ta = new M etricsData ('outgoing ', null);
  51  
  52           ex pect(metri cData.resu lt).to.equ al('undefi ned');
  53  
  54           me tricData.s uccessfulO peration() ;
  55  
  56           ex pect(metri cData.resu lt).to.equ al('succes s');
  57       });
  58  
  59       it('ca n set resu lt to fail ure', func tion() {
  60           va r metricDa ta = new M etricsData ('outgoing ', null);
  61  
  62           ex pect(metri cData.resu lt).to.equ al('undefi ned');
  63  
  64           me tricData.f ailedOpera tion();
  65  
  66           ex pect(metri cData.resu lt).to.equ al('failur e');
  67       });
  68   });