Logo Orsak

Conformance Module

Checks an IWireEncoding: that the values of every kind of type WireMapping supports cross it and come back the same, and that two encodings of a content type read what the other writes. Each check returns its failures, empty if it passes, for a test of any framework to assert on.

Functions and values

Function or value Description

agree reference encoding

Full Usage: agree reference encoding

Parameters:
    reference : IWireEncoding - An encoding known to be right, such as JsonEncoding.Instance
    encoding : IWireEncoding - The encoding to check against it

Returns: string list The failures, empty if the encodings agree

Checks that two encodings of a content type agree: that each reads the values of every kind of type the mapping supports, written by the other, the same. They needn't write the same bytes.

reference : IWireEncoding

An encoding known to be right, such as JsonEncoding.Instance

encoding : IWireEncoding

The encoding to check against it

Returns: string list

The failures, empty if the encodings agree

check encoding

Full Usage: check encoding

Parameters:
Returns: string list The failures, empty if the encoding passes

Checks that the values of every kind of type the mapping supports, written by encoding, are read back by it the same, and a member's arguments too.

encoding : IWireEncoding

The encoding to check

Returns: string list

The failures, empty if the encoding passes

Type something to start searching.