internal/

directory
v0.59.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2026 License: Apache-2.0

Directories

Path Synopsis
Package hermetictest gives every test binary in this module the same guarantee: nothing a test runs can read or write the real developer's home, XDG config, or XDG cache directories.
Package hermetictest gives every test binary in this module the same guarantee: nothing a test runs can read or write the real developer's home, XDG config, or XDG cache directories.
Package pgstandin gives the tests of this module a PostgreSQL database that has no server: a real *dalgo2postgres.Database whose connection pool lost its server, so that every call that needs a connection fails the way a read fails when the server was restarted, the password was changed or the connection limit was reached: with the error pgx writes, which names the user and holds the whole configuration.
Package pgstandin gives the tests of this module a PostgreSQL database that has no server: a real *dalgo2postgres.Database whose connection pool lost its server, so that every call that needs a connection fails the way a read fails when the server was restarted, the password was changed or the connection limit was reached: with the error pgx writes, which names the user and holds the whole configuration.
Package plainfs writes, reads, renames and removes files and folders inside a project folder only as plain files in plain folders.
Package plainfs writes, reads, renames and removes files and folders inside a project folder only as plain files in plain folders.
Package sourcecases generates the source strings the DT-0C property test feeds to every command path that takes a source: every scheme the CLI knows, in lower, upper and mixed case, bare and wrapped in another scheme, with a generated secret in each position a parser can read as userinfo or a user can put one: userinfo (with and without a user name), a token standing alone as the user name, the position a parser misreads as userinfo ("alice:42/secret@"), a token or a user name that holds a slash (so no colon or "@" comes before a slash), userinfo after a UNC start ("\\alice:secret@"), a user name with a slash after a UNC start, a token as the user name straight after a UNC start and after a UNC start and one more separator (a backslash or a slash), a second URL written after an explicit path start ("/" or "./") that holds the userinfo, the query string and the fragment.
Package sourcecases generates the source strings the DT-0C property test feeds to every command path that takes a source: every scheme the CLI knows, in lower, upper and mixed case, bare and wrapped in another scheme, with a generated secret in each position a parser can read as userinfo or a user can put one: userinfo (with and without a user name), a token standing alone as the user name, the position a parser misreads as userinfo ("alice:42/secret@"), a token or a user name that holds a slash (so no colon or "@" comes before a slash), userinfo after a UNC start ("\\alice:secret@"), a user name with a slash after a UNC start, a token as the user name straight after a UNC start and after a UNC start and one more separator (a backslash or a slash), a second URL written after an explicit path start ("/" or "./") that holds the userinfo, the query string and the fragment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL