clone.d.ts 971 B

1234567891011121314151617181920212223242526272829
  1. import { FunctionCov, ProcessCov, RangeCov, ScriptCov } from "./types";
  2. /**
  3. * Creates a deep copy of a process coverage.
  4. *
  5. * @param processCov Process coverage to clone.
  6. * @return Cloned process coverage.
  7. */
  8. export declare function cloneProcessCov(processCov: Readonly<ProcessCov>): ProcessCov;
  9. /**
  10. * Creates a deep copy of a script coverage.
  11. *
  12. * @param scriptCov Script coverage to clone.
  13. * @return Cloned script coverage.
  14. */
  15. export declare function cloneScriptCov(scriptCov: Readonly<ScriptCov>): ScriptCov;
  16. /**
  17. * Creates a deep copy of a function coverage.
  18. *
  19. * @param functionCov Function coverage to clone.
  20. * @return Cloned function coverage.
  21. */
  22. export declare function cloneFunctionCov(functionCov: Readonly<FunctionCov>): FunctionCov;
  23. /**
  24. * Creates a deep copy of a function coverage.
  25. *
  26. * @param rangeCov Range coverage to clone.
  27. * @return Cloned range coverage.
  28. */
  29. export declare function cloneRangeCov(rangeCov: Readonly<RangeCov>): RangeCov;