spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / pane-view / big-body-of.ts
24 lines · 604 BRaw
1import type Git from '../../../hooks/git'
2import Limits from '../../../hooks/limits'
3import { LONG_LINE_CHARS } from './long-line-chars.js'
4
5/**
6 * A body of one hunk at the line cap whose every line is long: more text
7 * than the pane's whole body budget holds.
8 *
9 * @returns the body
10 */
11export const bigBodyOf = (): Git.FileHunks => ({
12 hunks: [
13 {
14 oldStart: 0,
15 newStart: 1,
16 lines: Array.from(
17 { length: Limits.MAX_LINES_PER_FILE },
18 (_, at) => `+const value${at} = ${'0'.repeat(LONG_LINE_CHARS)}`,
19 ),
20 },
21 ],
22 isTruncated: false,
23 isLarge: false,
24})