Commit Graph

53 Commits

Author SHA1 Message Date
M d7c4f43135 Document the path token and the one-draw rule 2026-08-30 22:31:54 +02:00
M a25b42ace2 Read one value when a bound path is read twice 2026-08-30 22:31:54 +02:00
M 12100239f5 Draw a dotted token's head once per expansion 2026-08-30 22:31:54 +02:00
M 5263c866c4 Tests for a dotted sibling token drawing its head once per expansion 2026-08-30 22:31:54 +02:00
Mikael Göransson e371d217f4 Say what the objectid category actually is, and re-flow the registry comment 2026-08-28 13:35:12 +02:00
lilleman 43d3a752b3 Retire the objectid builtin; ship it as data instead 2026-08-28 13:35:12 +02:00
lilleman c11ae5f04f Expect objectid as a data category rather than a builtin 2026-08-28 13:35:12 +02:00
M 16f91503b0 Reject a standalone weight on key presence, whatever its value 2026-08-28 13:27:32 +02:00
M 48cadd6c4d Tests that a standalone weight of any type is rejected 2026-08-28 13:27:32 +02:00
M b14caae3a8 Reject options that cannot take effect, and skip entries that are not data 2026-08-28 13:27:32 +02:00
M 8d0393713c Tests for options that cannot take effect, and entries that are not data 2026-08-28 13:27:32 +02:00
lilleman af09a86e71 Express hex-shaped data with the hex() builtin instead of a hand-rolled choice 2026-08-28 13:25:41 +02:00
M aec0497ce5 Say what the triple-letter test and the escape rule actually cover 2026-08-28 13:24:07 +02:00
M 630f75f556 Remove the duplicated Vasa street prefix 2026-08-28 13:24:07 +02:00
Mikael Göransson e73cb398ac Keep every legal compound surname reachable, and tighten the README wording 2026-08-28 13:24:07 +02:00
lilleman cd25aea6f1 Correct the format-string example, and stop Swedish name data composing a triple letter 2026-08-28 13:24:07 +02:00
lilleman 404650ecc2 Test that shipped Swedish name data never composes a triple letter 2026-08-28 13:24:07 +02:00
Mikael Göransson 37759f773f Pin the builtin registry shape and grow as a lower bound, and correct stale comments 2026-08-28 13:20:07 +02:00
lilleman ab9846c2ff Compile format strings at New instead of re-scanning them on every render 2026-08-28 13:20:07 +02:00
lilleman 5282f37a59 Golden test pinning the seeded output of each part of the token grammar 2026-08-28 13:20:07 +02:00
Mikael Göransson 362c484825 Advertise only spellable paths, and name what a choice's variants share 2026-08-28 13:15:14 +02:00
Mikael Göransson 595809bf38 Tests for an ambiguous dot-path key and for naming a missing field 2026-08-28 13:15:14 +02:00
Mikael Göransson 1665b37cad Precompute each choice's shared paths so a dotted path stays O(1) 2026-08-28 13:15:14 +02:00
lilleman af5b8c9abd Require every choice variant to carry a path, and list only what Fake accepts 2026-08-28 13:15:14 +02:00
lilleman 7d5d03e393 Tests for the every-arm rule on paths through a choice, and the List/Fake contract 2026-08-28 13:15:14 +02:00
Mikael Göransson 2d8fcae4f4 Reject a folder using the reference prefix, and filter bindings only where they exist 2026-08-28 12:59:28 +02:00
Mikael Göransson 095a7f2de5 Tests that pin the reserved-prefix guards and per-field error order 2026-08-28 12:59:28 +02:00
Mikael Göransson e14f3a4145 Reserve the reference prefix in authored names, and report one compile error 2026-08-28 12:59:28 +02:00
Mikael Göransson af0c99809c Tests for cycles below the root and for the reserved reference prefix 2026-08-28 12:59:28 +02:00
lilleman f03825671e Report the canonical node path in load errors 2026-08-28 12:59:28 +02:00
lilleman e6afd089e2 Test that a load error names the canonical node path 2026-08-28 12:59:28 +02:00
lilleman f526441e30 Reject reference cycles in unrendered fields, and make New errors deterministic 2026-08-28 12:59:28 +02:00
lilleman 381c41f1e9 Tests for cycles hidden in unrendered fields, and deterministic New errors 2026-08-28 12:59:28 +02:00
M 4ad26970d8 Report both Go versions even when the first fails 2026-08-28 12:39:03 +02:00
M e7bd363519 Run the tests in CI as a merge gate 2026-08-28 12:39:03 +02:00
lilleman 5b6480a094 Updates from reviewers 2026-06-09 10:03:53 +02:00
lilleman cee2f35a2c Add {calc()}: arithmetic over number literals and sibling fields 2026-06-09 07:59:29 +02:00
lilleman eaf99d4542 Add locale-neutral misc data: currency, country, language, timezone, mimetype, httpstatus, useragent, coordinate, emoji, car 2026-06-09 01:58:49 +02:00
lilleman cde56b7924 Add session-scoped seq() builtin; move uuid v4 from locales to misc only 2026-06-09 01:52:39 +02:00
lilleman ae41e6bb97 Add ID/checksum/numeric builtins and a misc data folder (uuid v4, mac, creditcard) 2026-06-09 01:25:41 +02:00
lilleman c0eac6538d Correct CLI: repeatable -data-path flag for dirs, dot path stays positional 2026-06-09 00:54:33 +02:00
lilleman 889b1fbf8b Replace positional CLI path with a repeatable -path flag 2026-06-09 00:47:01 +02:00
lilleman 862c5f8a23 Add CLI -repeat and -separator flags for emitting multiple values 2026-06-09 00:31:46 +02:00
lilleman 18de1b7004 Add {..path} references: render a node from elsewhere in the merged data root 2026-06-09 00:11:17 +02:00
lilleman 8db65ac598 Replace locale dirs with a data-folder namespace model: New([]paths), folder dot-paths, last-wins merge 2026-06-08 23:52:37 +02:00
lilleman acf7571334 Stuff 2026-06-08 23:35:51 +02:00
lilleman a765230d3b Add fakes CLI (cmd/fakes); document it README-first with an SQL template example 2026-06-08 22:04:18 +02:00
lilleman 3e1cd3ee2a Add repeat/separator templates; validate at compile time; support Go 1.22+ via GO_VERSION 2026-06-08 21:11:58 +02:00
lilleman 72154502d7 Re-sort sv_SE localities by Swedish collation; add Rabbalshede 2026-06-08 16:03:44 +02:00
lilleman e28b92090d Expand locale data sets; match tests against patterns instead of fixed sets 2026-06-08 16:02:58 +02:00