Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update expected outputs for wit-parser tests to now include untrimmed…
Browse files Browse the repository at this point in the history
… whitespace
mjoerussell committed Dec 17, 2024

Verified

This commit was signed with the committer’s verified signature.
mjoerussell Mitch Russell
1 parent 31a1ef8 commit 57f4e91
Showing 4 changed files with 86 additions and 86 deletions.
2 changes: 1 addition & 1 deletion crates/wit-parser/tests/ui/comments.wit.json
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
},
"functions": {},
"docs": {
"contents": "hello\nworld\nwhy, yes\nthis is a comment\n* this too */\n* is a comment */\n* this /* is /* a */ nested */ comment */"
"contents": " hello\n world\n why, yes\n this is a comment\n* this too */\n* is a comment */\n* this /* is /* a */ nested */ comment */"
},
"package": 0
}
6 changes: 3 additions & 3 deletions crates/wit-parser/tests/ui/random.wit.json
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
}
],
"docs": {
"contents": "Return `len` cryptographically-secure random or pseudo-random bytes.\n\nThis function must produce data at least as cryptographically secure and\nfast as an adequately seeded cryptographically-secure pseudo-random\nnumber generator (CSPRNG). It must not block, from the perspective of\nthe calling program, under any circumstances, including on the first\nrequest and on requests for numbers of bytes. The returned data must\nalways be unpredictable.\n\nThis function must always return fresh data. Deterministic environments\nmust omit this function, rather than implementing it with deterministic\ndata."
"contents": " Return `len` cryptographically-secure random or pseudo-random bytes.\n\n This function must produce data at least as cryptographically secure and\n fast as an adequately seeded cryptographically-secure pseudo-random\n number generator (CSPRNG). It must not block, from the perspective of\n the calling program, under any circumstances, including on the first\n request and on requests for numbers of bytes. The returned data must\n always be unpredictable.\n\n This function must always return fresh data. Deterministic environments\n must omit this function, rather than implementing it with deterministic\n data."
}
},
"get-random-u64": {
@@ -33,12 +33,12 @@
}
],
"docs": {
"contents": "Return a cryptographically-secure random or pseudo-random `u64` value.\n\nThis function returns the same type of data as `get-random-bytes`,\nrepresented as a `u64`."
"contents": " Return a cryptographically-secure random or pseudo-random `u64` value.\n\n This function returns the same type of data as `get-random-bytes`,\n represented as a `u64`."
}
}
},
"docs": {
"contents": "WASI Random is a random data API.\n\nIt is intended to be portable at least between Unix-family platforms and\nWindows."
"contents": " WASI Random is a random data API.\n\n It is intended to be portable at least between Unix-family platforms and\n Windows."
},
"package": 0
}
2 changes: 1 addition & 1 deletion crates/wit-parser/tests/ui/types.wit.json
Original file line number Diff line number Diff line change
@@ -758,7 +758,7 @@
"interface": 0
},
"docs": {
"contents": "type order doesn't matter"
"contents": " type order doesn't matter"
}
}
],
162 changes: 81 additions & 81 deletions crates/wit-parser/tests/ui/wasi.wit.json
Original file line number Diff line number Diff line change
@@ -21,13 +21,13 @@
{
"name": "realtime",
"docs": {
"contents": "The clock measuring real time. Time value zero corresponds with\n1970-01-01T00:00:00Z."
"contents": " The clock measuring real time. Time value zero corresponds with\n 1970-01-01T00:00:00Z."
}
},
{
"name": "monotonic",
"docs": {
"contents": "The store-wide monotonic clock, which is defined as a clock measuring\nreal time, whose value cannot be adjusted and which cannot have negative\nclock jumps. The epoch of this clock is undefined. The absolute time\nvalue of this clock therefore has no meaning."
"contents": " The store-wide monotonic clock, which is defined as a clock measuring\n real time, whose value cannot be adjusted and which cannot have negative\n clock jumps. The epoch of this clock is undefined. The absolute time\n value of this clock therefore has no meaning."
}
}
]
@@ -46,7 +46,7 @@
"interface": 0
},
"docs": {
"contents": "Timestamp in nanoseconds."
"contents": " Timestamp in nanoseconds."
}
},
{
@@ -57,463 +57,463 @@
{
"name": "success",
"docs": {
"contents": "No error occurred. System call completed successfully."
"contents": " No error occurred. System call completed successfully."
}
},
{
"name": "toobig",
"docs": {
"contents": "Argument list too long."
"contents": " Argument list too long."
}
},
{
"name": "access",
"docs": {
"contents": "Permission denied."
"contents": " Permission denied."
}
},
{
"name": "addrinuse",
"docs": {
"contents": "Address in use."
"contents": " Address in use."
}
},
{
"name": "addrnotavail",
"docs": {
"contents": "Address not available."
"contents": " Address not available."
}
},
{
"name": "afnosupport",
"docs": {
"contents": "Address family not supported."
"contents": " Address family not supported."
}
},
{
"name": "again",
"docs": {
"contents": "Resource unavailable, or operation would block."
"contents": " Resource unavailable, or operation would block."
}
},
{
"name": "already",
"docs": {
"contents": "Connection already in progress."
"contents": " Connection already in progress."
}
},
{
"name": "badf",
"docs": {
"contents": "Bad file descriptor."
"contents": " Bad file descriptor."
}
},
{
"name": "badmsg",
"docs": {
"contents": "Bad message."
"contents": " Bad message."
}
},
{
"name": "busy",
"docs": {
"contents": "Device or resource busy."
"contents": " Device or resource busy."
}
},
{
"name": "canceled",
"docs": {
"contents": "Operation canceled."
"contents": " Operation canceled."
}
},
{
"name": "child",
"docs": {
"contents": "No child processes."
"contents": " No child processes."
}
},
{
"name": "connaborted",
"docs": {
"contents": "Connection aborted."
"contents": " Connection aborted."
}
},
{
"name": "connrefused",
"docs": {
"contents": "Connection refused."
"contents": " Connection refused."
}
},
{
"name": "connreset",
"docs": {
"contents": "Connection reset."
"contents": " Connection reset."
}
},
{
"name": "deadlk",
"docs": {
"contents": "Resource deadlock would occur."
"contents": " Resource deadlock would occur."
}
},
{
"name": "destaddrreq",
"docs": {
"contents": "Destination address required."
"contents": " Destination address required."
}
},
{
"name": "dom",
"docs": {
"contents": "Mathematics argument out of domain of function."
"contents": " Mathematics argument out of domain of function."
}
},
{
"name": "dquot",
"docs": {
"contents": "Reserved."
"contents": " Reserved."
}
},
{
"name": "exist",
"docs": {
"contents": "File exists."
"contents": " File exists."
}
},
{
"name": "fault",
"docs": {
"contents": "Bad address."
"contents": " Bad address."
}
},
{
"name": "fbig",
"docs": {
"contents": "File too large."
"contents": " File too large."
}
},
{
"name": "hostunreach",
"docs": {
"contents": "Host is unreachable."
"contents": " Host is unreachable."
}
},
{
"name": "idrm",
"docs": {
"contents": "Identifier removed."
"contents": " Identifier removed."
}
},
{
"name": "ilseq",
"docs": {
"contents": "Illegal byte sequence."
"contents": " Illegal byte sequence."
}
},
{
"name": "inprogress",
"docs": {
"contents": "Operation in progress."
"contents": " Operation in progress."
}
},
{
"name": "intr",
"docs": {
"contents": "Interrupted function."
"contents": " Interrupted function."
}
},
{
"name": "inval",
"docs": {
"contents": "Invalid argument."
"contents": " Invalid argument."
}
},
{
"name": "io",
"docs": {
"contents": "I/O error."
"contents": " I/O error."
}
},
{
"name": "isconn",
"docs": {
"contents": "Socket is connected."
"contents": " Socket is connected."
}
},
{
"name": "isdir",
"docs": {
"contents": "Is a directory."
"contents": " Is a directory."
}
},
{
"name": "loop",
"docs": {
"contents": "Too many levels of symbolic links."
"contents": " Too many levels of symbolic links."
}
},
{
"name": "mfile",
"docs": {
"contents": "File descriptor value too large."
"contents": " File descriptor value too large."
}
},
{
"name": "mlink",
"docs": {
"contents": "Too many links."
"contents": " Too many links."
}
},
{
"name": "msgsize",
"docs": {
"contents": "Message too large."
"contents": " Message too large."
}
},
{
"name": "multihop",
"docs": {
"contents": "Reserved."
"contents": " Reserved."
}
},
{
"name": "nametoolong",
"docs": {
"contents": "Filename too long."
"contents": " Filename too long."
}
},
{
"name": "netdown",
"docs": {
"contents": "Network is down."
"contents": " Network is down."
}
},
{
"name": "netreset",
"docs": {
"contents": "Connection aborted by network."
"contents": " Connection aborted by network."
}
},
{
"name": "netunreach",
"docs": {
"contents": "Network unreachable."
"contents": " Network unreachable."
}
},
{
"name": "nfile",
"docs": {
"contents": "Too many files open in system."
"contents": " Too many files open in system."
}
},
{
"name": "nobufs",
"docs": {
"contents": "No buffer space available."
"contents": " No buffer space available."
}
},
{
"name": "nodev",
"docs": {
"contents": "No such device."
"contents": " No such device."
}
},
{
"name": "noent",
"docs": {
"contents": "No such file or directory."
"contents": " No such file or directory."
}
},
{
"name": "noexec",
"docs": {
"contents": "Executable file format error."
"contents": " Executable file format error."
}
},
{
"name": "nolck",
"docs": {
"contents": "No locks available."
"contents": " No locks available."
}
},
{
"name": "nolink",
"docs": {
"contents": "Reserved."
"contents": " Reserved."
}
},
{
"name": "nomem",
"docs": {
"contents": "Not enough space."
"contents": " Not enough space."
}
},
{
"name": "nomsg",
"docs": {
"contents": "No message of the desired type."
"contents": " No message of the desired type."
}
},
{
"name": "noprotoopt",
"docs": {
"contents": "Protocol not available."
"contents": " Protocol not available."
}
},
{
"name": "nospc",
"docs": {
"contents": "No space left on device."
"contents": " No space left on device."
}
},
{
"name": "nosys",
"docs": {
"contents": "Function not supported."
"contents": " Function not supported."
}
},
{
"name": "notconn",
"docs": {
"contents": "The socket is not connected."
"contents": " The socket is not connected."
}
},
{
"name": "notdir",
"docs": {
"contents": "Not a directory or a symbolic link to a directory."
"contents": " Not a directory or a symbolic link to a directory."
}
},
{
"name": "notempty",
"docs": {
"contents": "Directory not empty."
"contents": " Directory not empty."
}
},
{
"name": "notrecoverable",
"docs": {
"contents": "State not recoverable."
"contents": " State not recoverable."
}
},
{
"name": "notsock",
"docs": {
"contents": "Not a socket."
"contents": " Not a socket."
}
},
{
"name": "notsup",
"docs": {
"contents": "Not supported, or operation not supported on socket."
"contents": " Not supported, or operation not supported on socket."
}
},
{
"name": "notty",
"docs": {
"contents": "Inappropriate I/O control operation."
"contents": " Inappropriate I/O control operation."
}
},
{
"name": "nxio",
"docs": {
"contents": "No such device or address."
"contents": " No such device or address."
}
},
{
"name": "overflow",
"docs": {
"contents": "Value too large to be stored in data type."
"contents": " Value too large to be stored in data type."
}
},
{
"name": "ownerdead",
"docs": {
"contents": "Previous owner died."
"contents": " Previous owner died."
}
},
{
"name": "perm",
"docs": {
"contents": "Operation not permitted."
"contents": " Operation not permitted."
}
},
{
"name": "pipe",
"docs": {
"contents": "Broken pipe."
"contents": " Broken pipe."
}
},
{
"name": "proto",
"docs": {
"contents": "Protocol error."
"contents": " Protocol error."
}
},
{
"name": "protonosupport",
"docs": {
"contents": "Protocol not supported."
"contents": " Protocol not supported."
}
},
{
"name": "prototype",
"docs": {
"contents": "Protocol wrong type for socket."
"contents": " Protocol wrong type for socket."
}
},
{
"name": "range",
"docs": {
"contents": "Result too large."
"contents": " Result too large."
}
},
{
"name": "rofs",
"docs": {
"contents": "Read-only file system."
"contents": " Read-only file system."
}
},
{
"name": "spipe",
"docs": {
"contents": "Invalid seek."
"contents": " Invalid seek."
}
},
{
"name": "srch",
"docs": {
"contents": "No such process."
"contents": " No such process."
}
},
{
"name": "stale",
"docs": {
"contents": "Reserved."
"contents": " Reserved."
}
},
{
"name": "timedout",
"docs": {
"contents": "Connection timed out."
"contents": " Connection timed out."
}
},
{
"name": "txtbsy",
"docs": {
"contents": "Text file busy."
"contents": " Text file busy."
}
},
{
"name": "xdev",
"docs": {
"contents": "Cross-device link."
"contents": " Cross-device link."
}
},
{
"name": "notcapable",
"docs": {
"contents": "Extension: Capabilities insufficient."
"contents": " Extension: Capabilities insufficient."
}
}
]
@@ -523,7 +523,7 @@
"interface": 0
},
"docs": {
"contents": "Error codes returned by functions.\nNot all of these error codes are returned by the functions provided by this\nAPI/ some are used in higher-level library layers, and others are provided\nmerely for alignment with POSIX."
"contents": " Error codes returned by functions.\n Not all of these error codes are returned by the functions provided by this\n API/ some are used in higher-level library layers, and others are provided\n merely for alignment with POSIX."
}
}
],

0 comments on commit 57f4e91

Please sign in to comment.