...

Source file src/github.com/launchdarkly/go-jsonstream/v3/internal/commontest/package_info.go

Documentation: github.com/launchdarkly/go-jsonstream/v3/internal/commontest

     1  // Package commontest provides test logic for JSON reading and writing.
     2  //
     3  // To ensure that the go-jsonstream types perform correctly with a wide range of inputs and outputs,
     4  // we generate many permutations (single scalar values of various types; numbers in different formats;
     5  // strings with or without escape characters at different positions; arrays and objects with different
     6  // numbers of elements/properties) which are tested for both readers and writers. For readers, we also
     7  // test various permutations of invalid input.
     8  //
     9  // Reader and writer tests are run against the high-level APIs (Reader, Writer) and the default
    10  // implementations of the low-level APIs (tokenReader, tokenWriter).
    11  package commontest
    12  

View as plain text