File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed 
src/appsec/iast/taint-tracking 
test/appsec/iast/taint-tracking Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 11'use strict' 
22
33const  csiMethods  =  [ 
4-   {  src : 'plusOperator' ,  operator : true  } , 
54  {  src : 'concat'  } , 
5+   {  src : 'plusOperator' ,  operator : true  } , 
66  {  src : 'replace'  } , 
77  {  src : 'slice'  } , 
88  {  src : 'substr'  } , 
@@ -12,19 +12,6 @@ const csiMethods = [
1212  {  src : 'trimStart' ,  dst : 'trim'  } 
1313] 
1414
15- function  getExpectedMethods  ( )  { 
16-   const  set  =  new  Set ( ) 
17-   for  ( const  definition  of  csiMethods )  { 
18-     if  ( definition . dst )  { 
19-       set . add ( definition . dst ) 
20-     }  else  { 
21-       set . add ( definition . src ) 
22-     } 
23-   } 
24-   return  [ ...set ] 
25- } 
26- 
2715module . exports  =  { 
28-   csiMethods, 
29-   getExpectedMethods
16+   csiMethods
3017} 
Original file line number Diff line number Diff line change 33const  {  expect }  =  require ( 'chai' ) 
44const  proxyquire  =  require ( 'proxyquire' ) 
55const  iastContextFunctions  =  require ( '../../../../src/appsec/iast/iast-context' ) 
6- const  {  getExpectedMethods  }  =  require ( '../../../../src/appsec/iast/taint-tracking/csi-methods' ) 
6+ const  {  csiMethods  }  =  require ( '../../../../src/appsec/iast/taint-tracking/csi-methods' ) 
77const  iastTelemetry  =  require ( '../../../../src/appsec/iast/telemetry' ) 
88const  {  EXECUTED_PROPAGATION ,  REQUEST_TAINTED  }  =  require ( '../../../../src/appsec/iast/telemetry/iast-metric' ) 
99const  {  Verbosity }  =  require ( '../../../../src/appsec/iast/telemetry/verbosity' ) 
1010
11+ function  getExpectedMethods  ( )  { 
12+   const  set  =  new  Set ( ) 
13+   for  ( const  definition  of  csiMethods )  { 
14+     if  ( definition . dst )  { 
15+       set . add ( definition . dst ) 
16+     }  else  { 
17+       set . add ( definition . src ) 
18+     } 
19+   } 
20+   return  [ ...set ] 
21+ } 
22+ 
1123describe ( 'IAST TaintTracking Operations' ,  ( )  =>  { 
1224  let  taintTrackingOperations 
1325  let  taintTrackingImpl 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments