#include "validation_task.h"
#include <libaddressinput/address_data.h>
#include <libaddressinput/address_field.h>
#include <libaddressinput/address_problem.h>
#include <libaddressinput/address_validator.h>
#include <libaddressinput/callback.h>
#include <libaddressinput/supplier.h>
#include <cstddef>
#include <memory>
#include <gtest/gtest.h>
#include "lookup_key.h"
#include "rule.h"
#include "util/size.h"
namespace i18n {
namespace addressinput {
class ValidationTaskTest : public testing::Test { … };
namespace {
TEST_F(ValidationTaskTest, FailureCountryRuleNull) { … }
TEST_F(ValidationTaskTest, FailureCountryRuleEmpty) { … }
TEST_F(ValidationTaskTest, SuccessCountryRuleNullNameEmpty) { … }
TEST_F(ValidationTaskTest, SuccessCountryRuleNullNameNotEmpty) { … }
TEST_F(ValidationTaskTest, SuccessCountryRuleEmptyNameEmpty) { … }
TEST_F(ValidationTaskTest, SuccessCountryRuleEmptyNameNotEmpty) { … }
TEST_F(ValidationTaskTest, MissingRequiredFieldsUS) { … }
TEST_F(ValidationTaskTest, MissingNoRequiredFieldsUS) { … }
TEST_F(ValidationTaskTest, UnexpectedFieldUS) { … }
TEST_F(ValidationTaskTest, MissingRequiredFieldRequireName) { … }
TEST_F(ValidationTaskTest, UnknownValueRuleNull) { … }
TEST_F(ValidationTaskTest, NoUnknownValueRuleNotNull) { … }
TEST_F(ValidationTaskTest, PostalCodeUnrecognizedFormatTooShort) { … }
TEST_F(ValidationTaskTest, PostalCodeUnrecognizedFormatTooLong) { … }
TEST_F(ValidationTaskTest, PostalCodeRecognizedFormat) { … }
TEST_F(ValidationTaskTest, PostalCodeMismatchingValue1) { … }
TEST_F(ValidationTaskTest, PostalCodeMismatchingValue2) { … }
TEST_F(ValidationTaskTest, PostalCodeMismatchingValue3) { … }
TEST_F(ValidationTaskTest, PostalCodeMatchingValue) { … }
TEST_F(ValidationTaskTest, PostalCodePrefixMismatchingValue) { … }
TEST_F(ValidationTaskTest, PostalCodeFilterIgnoresMismatching) { … }
TEST_F(ValidationTaskTest, UsesPoBoxLanguageUnd) { … }
TEST_F(ValidationTaskTest, UsesPoBoxLanguageDa) { … }
TEST_F(ValidationTaskTest, UsesPoBoxLanguageDaNotMatchDe) { … }
TEST_F(ValidationTaskTest, UsesPoBoxAllowPostal) { … }
}
}
}