mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 03:57:09 +00:00
merge origin/master into llm-recording-and-analysis
both sides independently fixed the same three bugs, so each one had to pick a winner rather than keep both implementations. extractor encoding: master's recordableValue in worker.go wins over ours in marshal.go, since master's is pinned by extractor_encoding_test.go and ours had no tests. our error semantics stay: encodeExtractorValue still returns an error instead of nil, so an extractor cannot vanish from the trace silently. apply errors: only the residual generic branch takes master's unconfirmed copy, where the device may have committed the action before the call failed. the finer branches that know nothing was dispatched keep lastAction = nil, and our actionSkipReason taxonomy stays alongside master's held/skippedVerification. selector matching: our matchAttr with matchSelectorKind wins over master's match, since ours also handles idPrefix. matchSelector now calls it, which git did not flag as a conflict and left calling a function our side had deleted. the ltl doc comment takes master's correction: an unbounded eventually that never fires IS violated at run end.
This commit is contained in:
commit
6e85cac8b3
130 files changed
+12772
-1617
No files matched your search
@@ -29,6 +29,12 @@ import {
|
||||
weighted,
|
||||
whenRoute,
|
||||
} from "../src/index.ts";
|
||||
import type {
|
||||
Action,
|
||||
Direction,
|
||||
LongPressAction,
|
||||
ScrollAction,
|
||||
} from "../src/index.ts";
|
||||
import { setSamplerRng } from "../src/actions.ts";
|
||||
import { SAMPLER_REFUSAL_NAME, setEnumeratingCandidates } from "../src/sampler-rng.ts";
|
||||
import { Pcg } from "../src/pcg.ts";
|
||||
@@ -446,3 +452,18 @@ test("whenRoute body is skipped for a null route", () => {
|
||||
const node = whenRoute(route, ["home"], () => [Tap({ on: "id:x" })]);
|
||||
assert.deepEqual((node as { generate: () => unknown }).generate(), []);
|
||||
});
|
||||
|
||||
// The package entry is the only module a spec author can import from, so every
|
||||
// member of the exported Action union, and the Direction needed to build a
|
||||
// Scroll, has to be reachable there rather than only from src/types.ts.
|
||||
test("index exports every action type a spec author annotates with", () => {
|
||||
const direction: Direction = "down";
|
||||
const scroll: ScrollAction = Scroll({ direction, in: "id:list" });
|
||||
const longPress: LongPressAction = LongPress({ on: "id:row" });
|
||||
const built: Action[] = [scroll, longPress];
|
||||
|
||||
assert.deepEqual(
|
||||
built.map(action => action.kind),
|
||||
["Scroll", "LongPress"],
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user