| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,52 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + // Here we can't import common module as the coverage will be different based on the system | ||
| 3 | + | ||
| 4 | + // Empty functions that don't do anything | ||
| 5 | + function doNothing1() { | ||
| 6 | + // Not implemented | ||
| 7 | + } | ||
| 8 | + | ||
| 9 | + function doNothing2() { | ||
| 10 | + // No logic here | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + function unusedFunction1() { | ||
| 14 | + // Intentionally left empty | ||
| 15 | + } | ||
| 16 | + | ||
| 17 | + function unusedFunction2() { | ||
| 18 | + // Another empty function | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + // Unused variables | ||
| 22 | + const unusedVariable1 = 'This is never used'; | ||
| 23 | + const unusedVariable2 = 42; | ||
| 24 | + let unusedVariable3; | ||
| 25 | + | ||
| 26 | + // Empty class with no methods | ||
| 27 | + class UnusedClass { | ||
| 28 | + constructor() { | ||
| 29 | + // Constructor does nothing | ||
| 30 | + } | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + // Empty object literal | ||
| 34 | + const emptyObject = {}; | ||
| 35 | + | ||
| 36 | + // Empty array | ||
| 37 | + const emptyArray = []; | ||
| 38 | + | ||
| 39 | + // Function with parameters but no body | ||
| 40 | + function doNothingWithParams(param1, param2) { | ||
| 41 | + // No implementation | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + // Function that returns nothing | ||
| 45 | + function returnsNothing() { | ||
| 46 | + // No return statement | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + // Another unused function | ||
| 50 | + function unusedFunction3() { | ||
| 51 | + // More empty code | ||
| 52 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + // Here we can't import common module as the coverage will be different based on the system | ||
| 3 | + | ||
| 4 | + // Empty functions that don't do anything | ||
| 5 | + function doNothing1() { | ||
| 6 | + // Not implemented | ||
| 7 | + } | ||
| 8 | + | ||
| 9 | + function doNothing2() { | ||
| 10 | + // No logic here | ||
| 11 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments