MCPcopy Create free account
hub / github.com/vitest-dev/vitest / printInsertLine

Function printInsertLine

packages/utils/src/diff/joinAlignedDiffs.ts:58–76  ·  view source on GitHub ↗
(
  line: string,
  isFirstOrLast: boolean,
  {
    bColor,
    bIndicator,
    changeLineTrailingSpaceColor,
    emptyFirstOrLastLinePlaceholder,
  }: DiffOptionsNormalized,
)

Source from the content-addressed store, hash-verified

56}
57
58function printInsertLine(
59 line: string,
60 isFirstOrLast: boolean,
61 {
62 bColor,
63 bIndicator,
64 changeLineTrailingSpaceColor,
65 emptyFirstOrLastLinePlaceholder,
66 }: DiffOptionsNormalized,
67): string {
68 return printDiffLine(
69 line,
70 isFirstOrLast,
71 bColor,
72 bIndicator,
73 changeLineTrailingSpaceColor,
74 emptyFirstOrLastLinePlaceholder,
75 )
76}
77
78function printCommonLine(
79 line: string,

Callers 2

pushInsertLineFunction · 0.85
joinAlignedDiffsExpandFunction · 0.85

Calls 1

printDiffLineFunction · 0.85

Tested by

no test coverage detected