#include "parser.h"
#include <gtest/gtest.h>
#include "input.h"
#include "parse_values.h"
BSSL_NAMESPACE_BEGIN
namespace der::test {
TEST(ParserTest, ConsumesAllBytesOfTLV) { … }
TEST(ParserTest, CanReadRawTLV) { … }
TEST(ParserTest, IgnoresContentsOfInnerValues) { … }
TEST(ParserTest, FailsIfLengthOverlapsAnotherTLV) { … }
TEST(ParserTest, ReadOptionalTagPresent) { … }
TEST(ParserTest, ReadOptionalTag2Present) { … }
TEST(ParserTest, ReadOptionalTagNotPresent) { … }
TEST(ParserTest, ReadOptionalTag2NotPresent) { … }
TEST(ParserTest, CanSkipOptionalTagAtEndOfInput) { … }
TEST(ParserTest, SkipOptionalTagDoesntConsumePresentNonMatchingTLVs) { … }
TEST(ParserTest, TagNumbersAboveThirtySupported) { … }
TEST(ParserTest, ParseTags) { … }
TEST(ParserTest, IncompleteEncodingTagOnly) { … }
TEST(ParserTest, IncompleteEncodingLengthTruncated) { … }
TEST(ParserTest, IncompleteEncodingValueShorterThanLength) { … }
TEST(ParserTest, LengthMustBeEncodedWithMinimumNumberOfOctets) { … }
TEST(ParserTest, LengthMustNotHaveLeadingZeroes) { … }
TEST(ParserTest, ReadConstructedFailsForNonConstructedTags) { … }
TEST(ParserTest, CannotAdvanceAfterReadOptionalTag) { … }
TEST(ParserTest, ReadBitString) { … }
TEST(ParserTest, ReadBitStringBadTag) { … }
}
BSSL_NAMESPACE_END