chromium/third_party/liburlpattern/tokenize_unittest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file or at https://opensource.org/licenses/MIT.

#include "third_party/liburlpattern/tokenize.h"

#include <string_view>

#include "testing/gtest/include/gtest/gtest.h"

namespace liburlpattern {

void RunTokenizeTest(std::string_view pattern,
                     absl::StatusOr<std::vector<Token>> expected,
                     TokenizePolicy policy = TokenizePolicy::kStrict) {}

TEST(TokenizeTest, EmptyPattern) {}

TEST(TokenizeTest, Chars) {}

TEST(TokenizeTest, CharsWithClosingParen) {}

TEST(TokenizeTest, EscapedChar) {}

TEST(TokenizeTest, EscapedColon) {}

TEST(TokenizeTest, EscapedParen) {}

TEST(TokenizeTest, EscapedCurlyBrace) {}

TEST(TokenizeTest, EscapedCharAtEnd) {}

TEST(TokenizeTest, Name) {}

TEST(TokenizeTest, NameWithZeroLength) {}

TEST(TokenizeTest, NameWithUnicodeChar) {}

TEST(TokenizeTest, NameWithSpaceFirstChar) {}

TEST(TokenizeTest, NameWithDollarFirst) {}

TEST(TokenizeTest, NameWithDollarLater) {}

TEST(TokenizeTest, NameWithUnderscoreFirst) {}

TEST(TokenizeTest, NameWithUnderscoreLater) {}

TEST(TokenizeTest, NameFollowedByEscapedChar) {}

TEST(TokenizeTest, NameAndFileExtension) {}

TEST(TokenizeTest, NameInPath) {}

TEST(TokenizeTest, Regex) {}

TEST(TokenizeTest, RegexWithZeroLength) {}

TEST(TokenizeTest, RegexWithInvalidChar) {}

TEST(TokenizeTest, RegexWithoutClosingParen) {}

TEST(TokenizeTest, RegexWithNestedCapturingGroup) {}

TEST(TokenizeTest, RegexWithNestedNamedCapturingGroup) {}

TEST(TokenizeTest, RegexWithNestedNonCapturingGroup) {}

TEST(TokenizeTest, RegexWithAssertion) {}

TEST(TokenizeTest, RegexWithNestedUnbalancedGroup) {}

TEST(TokenizeTest, RegexWithTrailingParen) {}

TEST(TokenizeTest, RegexWithEscapedChar) {}

TEST(TokenizeTest, RegexWithTrailingEscapedChar) {}

TEST(TokenizeTest, RegexWithEscapedInvalidChar) {}

TEST(TokenizeTest, RegexWithLeadingQuestion) {}

TEST(TokenizeTest, RegexInPath) {}

TEST(TokenizeTest, WildcardInPath) {}

TEST(TokenizeTest, ModifierStar) {}

TEST(TokenizeTest, ModifierPlus) {}

TEST(TokenizeTest, ModifierQuestion) {}

TEST(TokenizeTest, Everything) {}

TEST(TokenizeTest, LenientPolicy) {}

TEST(TokenizeTest, LenientPolicyTrailingEscape) {}

TEST(TokenizeTest, LenientPolicyRegexWithoutClose) {}

TEST(TokenizeTest, LenientPolicyRegexWithTrailingEscape) {}

TEST(TokenizeTest, LenientPolicyRegexWithCaptureGroup) {}

TEST(TokenizeTest, InvalidUtf8) {}

TEST(TokenizeTest, InvalidUtf8Escaped) {}

TEST(TokenizeTest, InvalidUtf8InName) {}

TEST(TokenizeTest, InvalidUtf8InRegexGroup) {}

TEST(TokenizeTest, InvalidUtf8EscapedInRegexGroup) {}

TEST(TokenizeTest, InvalidUtf8InNestedRegexGroup) {}

}  // namespace liburlpattern