Documentation
¶
Overview ¶
Package fake provides an in-memory sourcecontrol.SourceControl seeded with a single queue's linear ref history, ordered newest-first. It is intended for examples and tests only, never production. Ancestry is decided by position in the seeded slice: an earlier commit (larger index) is an ancestor of a later one (smaller index).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(history []string) sourcecontrol.SourceControl
New returns a sourcecontrol.SourceControl backed by the given ref history, ordered newest-first (history[0] is the latest commit). The slice is copied so later mutation by the caller does not affect the fake.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.