Documentation
¶
Overview ¶
Package sim proves a parsed CEM patch against exact base-tree bytes, per interop/cem-0.1/ALGORITHMS.md "Patch/base simulation". It is a simulation only: the patch is never executed, and old bytes are never invented — every context and removed payload must match the base byte-for-byte.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyHunks ¶
ApplyHunks copies untouched base lines, compares every context and removed payload byte-for-byte, appends context and added payloads, and verifies every old and new cursor.
Types ¶
type BlobSource ¶
type BlobSource interface {
// BaseBlob returns the bounded blob bytes and tree mode at path in the
// base tree and whether the path exists as a regular blob.
BaseBlob(path string) (data []byte, mode string, exists bool, err error)
}
BlobSource reads base-tree blobs through Git object identity.
Click to show internal directories.
Click to hide internal directories.