#include "components/facilitated_payments/core/util/pix_code_validator.h"
#include "base/strings/strcat.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace payments::facilitated {
namespace {
TEST(PixCodeValidatorTest, ValidDynamicCode) { … }
TEST(PixCodeValidatorTest, ValidDynamicCodeWithSomeUpperCaseLetters) { … }
TEST(PixCodeValidatorTest, StaticCode) { … }
TEST(PixCodeValidatorTest, EmptyStringNotValid) { … }
TEST(PixCodeValidatorTest, LastSectionLengthTooLong) { … }
TEST(PixCodeValidatorTest, SectionHeaderIsNotADigit) { … }
TEST(PixCodeValidatorTest, LastSectionLengthTooShort) { … }
TEST(PixCodeValidatorTest, SectionHeaderTruncatedTooShort) { … }
TEST(PixCodeValidatorTest, MerchantAccountInformationIsEmpty) { … }
TEST(PixCodeValidatorTest, MerchantAccountInformationIsNotValid) { … }
TEST(PixCodeValidatorTest, InvalidPixCodeIndicator) { … }
TEST(PixCodeValidatorTest, EmptyAdditionalDataSection) { … }
TEST(PixCodeValidatorTest, LastSectionIdIsNotCrc16) { … }
TEST(PixCodeValidatorTest, FirstSectionIsNotPayloadIndicator) { … }
TEST(PixCodeValidatorTest, NoMerchantAccountInformationSection) { … }
TEST(PixCodeValidatorTest, NoPixCodeIndicator) { … }
TEST(PixCodeValidatorTest, ContainsPixCodeIdentifier) { … }
TEST(PixCodeValidatorTest, ContainsPixCodeIdentifier_MixedCase) { … }
TEST(PixCodeValidatorTest, DoesNotContainsPixCodeIdentifier) { … }
}
}