<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/test2.rs, branch arti-v2.1.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.1.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.1.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-01-14T14:45:54Z</updated>
<entry>
<title>tor-netdoc: derives: New `skip` document field option</title>
<updated>2026-01-14T14:45:54Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-01-07T12:39:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d209f26e1c01c5c337418f3c99c85aec31613c66'/>
<id>urn:sha1:d209f26e1c01c5c337418f3c99c85aec31613c66</id>
<content type='text'>
This lets us having document items that are "manually non exhaustive"
which is necessary for struct literal constructors.
</content>
</entry>
<entry>
<title>tor-netdoc: test2: Make t_ok (which takes no boundaries) take &amp;D not &amp;[D]</title>
<updated>2025-12-18T17:30:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-17T16:18:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=39e1c2de26ce626bdd84550aaefb43daa8782a34'/>
<id>urn:sha1:39e1c2de26ce626bdd84550aaefb43daa8782a34</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: test2: Test parse_netdoc_multiple_with_offsets</title>
<updated>2025-12-18T17:30:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-17T16:16:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f5de3335e79c1b23da7b62d8074df2704bcfa2ec'/>
<id>urn:sha1:f5de3335e79c1b23da7b62d8074df2704bcfa2ec</id>
<content type='text'>
 * Make a fancy version of t_ok, t_ok_multi, that takes the expected boundary byte offsets.
 * t_ok is now just for single-document files and is implemented in terms of t_ok_multi.
 * Use t_ok_multi for the one test case with multiple documents.
</content>
</entry>
<entry>
<title>tor-netdoc: test2: Add a test file with more than one document</title>
<updated>2025-12-18T17:28:36Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-17T16:04:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3ec2461f501f6ea21279acfa4d2fa87649eb785a'/>
<id>urn:sha1:3ec2461f501f6ea21279acfa4d2fa87649eb785a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: rustfmt</title>
<updated>2025-12-18T16:44:55Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-16T16:22:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=653d6b74784ee5ab33f065f87aeea9dbf1157474'/>
<id>urn:sha1:653d6b74784ee5ab33f065f87aeea9dbf1157474</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Use $P for prelude in one place</title>
<updated>2025-12-18T16:44:55Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-10T14:38:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5ec68ca2391068f90683fc406fb6f38bd4074050'/>
<id>urn:sha1:5ec68ca2391068f90683fc406fb6f38bd4074050</id>
<content type='text'>
This was missed, apparently.
</content>
</entry>
<entry>
<title>tor-netdoc: test2: check round-trip encoding</title>
<updated>2025-12-10T11:05:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T13:07:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=10cb24c401baead05296e7e4fd8251bd839fc0f4'/>
<id>urn:sha1:10cb24c401baead05296e7e4fd8251bd839fc0f4</id>
<content type='text'>
The test case documents are often not in canonical form.  We don't
want to change them to be in canonical form because we want to test
parsing edge cases.  So, we provide a mangling scheme with in-document
notes, and annotate all the documents.

Apply suitable annotations to all the documents.

Test that the encoded forms are as expected.

This reverts commit 05e7b8b60061a7e8a8d004a822cc213d3ea22d47.
</content>
</entry>
<entry>
<title>tor-netdoc: test2: implement encoding traits for all test types</title>
<updated>2025-12-10T11:05:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-11-25T12:07:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=04d39e31038472344e3c37e8c2d7becdc45e7ffc'/>
<id>urn:sha1:04d39e31038472344e3c37e8c2d7becdc45e7ffc</id>
<content type='text'>
Make this whole module conditional on the encode feature.

Apply the derives.  Provide the necessary manual implementations for
the types where we use `with`.
</content>
</entry>
<entry>
<title>tor-netdoc: test2: Don't ever have raw String in defaulted arguments</title>
<updated>2025-12-04T12:54:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T11:14:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0be1ad7b438470bb9871fd4cbdf42597d4d76c23'/>
<id>urn:sha1:0be1ad7b438470bb9871fd4cbdf42597d4d76c23</id>
<content type='text'>
These cannot be encoded.  So that is logically incoherent.

(Perhaps String ought not to be NormalItemArgument, but let's not
tackle that now.)
</content>
</entry>
<entry>
<title>parse2: ItemValueParseable, netdoc(rest, with): rework</title>
<updated>2025-12-02T17:34:21Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-11-26T14:12:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c44465c1d7f397e04fa3f2fd8cd55f26968c179b'/>
<id>urn:sha1:c44465c1d7f397e04fa3f2fd8cd55f26968c179b</id>
<content type='text'>
The path in `with` must always be a module, not a function, because we
need to use it for encoding too.

In the case of `rest`, it's probably sensible to require a different
function name, given that the semantics are subtly different to those
of `rest` without `with`, since the latter can only get a single word
but with `rest` you get the whole line.
</content>
</entry>
</feed>
