---
source_file: "context/prompt_builder_test.go"
type: "code"
community: "testgo Part Context"
location: "L1"
tags:
  - graphify/code
  - graphify/EXTRACTED
  - community/testgo_Part_Context
---

# prompt_builder_test.go

## Connections
- [[TestPromptBuilderBudgetsRequiredSourceBeforeEarlierOptionalContext()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderBuildsStructuredPrompt()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderCountsSourcePartsWithoutExplicitTokens()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderDropsEarlierOptionalContextForLaterUserPrompt()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderDropsOptionalSourceOverBudget()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderDropsOptionalStaticSystemPartOverBudget()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderEmitsDebugEvents()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderEscapesPartIDs()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderFailsRequiredOverBudget()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderPassesSourceCap()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderRejectsDuplicateEmittedPartIDs()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderRejectsDuplicateIDs()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderRendersRequiredPartsBeforeOptionalParts()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderReusesTokenCountForSourceBudget()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderSourceCanInspectWholePlan()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderSourceFailurePolicy()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderSummarizesOptionalStaticUserPartBeforeDropping()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderTraceSplitsEntryAndPromptTokens()]] - `contains` [EXTRACTED]
- [[TestPromptBuilderUsesCustomRenderer()]] - `contains` [EXTRACTED]
- [[TestPromptSessionRebuildsSourcesWhenConversationReserveIsExceeded()]] - `contains` [EXTRACTED]
- [[assertContainsAll()]] - `contains` [EXTRACTED]
- [[assertContainsNone()]] - `contains` [EXTRACTED]
- [[assertOrdered()]] - `contains` [EXTRACTED]
- [[emptyConversation]] - `contains` [EXTRACTED]
- [[fakeSummarizer]] - `contains` [EXTRACTED]
- [[sectionNameRenderer]] - `contains` [EXTRACTED]
- [[traceEntry()]] - `contains` [EXTRACTED]
- [[traceEntryStatus()]] - `contains` [EXTRACTED]

#graphify/code #graphify/EXTRACTED #community/testgo_Part_Context