pydantic coverage for 2f3e1ac12b86f57a401a9421bb15747395f56cdf: 95.46%

Files Functions Classes

coverage.py v7.6.12, created at 2025-02-13 19:35 +0000

File class statements missing excluded branches partial coverage
pydantic/__init__.py (no class) 30 4 23 10 2 85.00%
pydantic/_internal/__init__.py (no class) 0 0 0 0 0 100.00%
pydantic/_internal/_config.py ConfigWrapper 34 0 0 16 0 100.00%
pydantic/_internal/_config.py ConfigWrapperStack 11 0 0 4 0 100.00%
pydantic/_internal/_config.py (no class) 93 0 3 8 0 100.00%
pydantic/_internal/_core_metadata.py CoreMetadata 0 0 0 0 0 100.00%
pydantic/_internal/_core_metadata.py (no class) 34 3 3 20 4 87.04%
pydantic/_internal/_core_utils.py (no class) 86 31 2 32 1 55.93%
pydantic/_internal/_dataclasses.py PydanticDataclass 0 0 0 0 0 100.00%
pydantic/_internal/_dataclasses.py (no class) 68 3 24 8 0 96.05%
pydantic/_internal/_decorators.py ValidatorDecoratorInfo 0 0 0 0 0 100.00%
pydantic/_internal/_decorators.py FieldValidatorDecoratorInfo 0 0 0 0 0 100.00%
pydantic/_internal/_decorators.py RootValidatorDecoratorInfo 0 0 0 0 0 100.00%
pydantic/_internal/_decorators.py FieldSerializerDecoratorInfo 0 0 0 0 0 100.00%
pydantic/_internal/_decorators.py ModelSerializerDecoratorInfo 0 0 0 0 0 100.00%
pydantic/_internal/_decorators.py ModelValidatorDecoratorInfo 0 0 0 0 0 100.00%
pydantic/_internal/_decorators.py PydanticDescriptorProxy 17 0 0 10 2 92.59%
pydantic/_internal/_decorators.py Decorator 10 0 0 6 1 93.75%
pydantic/_internal/_decorators.py DecoratorInfos 43 0 0 32 0 100.00%
pydantic/_internal/_decorators.py (no class) 245 4 3 76 3 97.82%
pydantic/_internal/_decorators_v1.py V1OnlyValueValidator 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py V1ValidatorWithValues 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py V1ValidatorWithValuesKwOnly 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py V1ValidatorWithKwargs 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py V1ValidatorWithValuesAndKwargs 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py V1RootValidatorFunction 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py V2CoreBeforeRootValidator 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py V2CoreAfterRootValidator 0 0 1 0 0 100.00%
pydantic/_internal/_decorators_v1.py (no class) 56 3 26 24 1 95.00%
pydantic/_internal/_discriminated_union.py MissingDefinitionForUnionRef 2 0 0 0 0 100.00%
pydantic/_internal/_discriminated_union.py _ApplyInferredDiscriminator 153 4 0 96 5 96.39%
pydantic/_internal/_discriminated_union.py (no class) 32 0 3 4 0 100.00%
pydantic/_internal/_docs_extraction.py DocstringVisitor 14 0 0 6 2 90.00%
pydantic/_internal/_docs_extraction.py (no class) 49 6 0 14 0 90.48%
pydantic/_internal/_fields.py PydanticMetadata 0 0 0 0 0 100.00%
pydantic/_internal/_fields.py _general_metadata_cls._PydanticGeneralMetadata 1 0 0 0 0 100.00%
pydantic/_internal/_fields.py (no class) 202 2 6 122 4 98.15%
pydantic/_internal/_forward_ref.py PydanticRecursiveRef 2 0 0 0 0 100.00%
pydantic/_internal/_forward_ref.py (no class) 11 0 0 0 0 100.00%
pydantic/_internal/_generate_schema.py InvalidSchemaError 0 0 0 0 0 100.00%
pydantic/_internal/_generate_schema.py GenerateSchema 904 41 4 502 31 94.74%
pydantic/_internal/_generate_schema.py _CommonField 0 0 0 0 0 100.00%
pydantic/_internal/_generate_schema.py _Definitions 46 0 0 18 0 100.00%
pydantic/_internal/_generate_schema.py _FieldNameStack 7 0 0 2 0 100.00%
pydantic/_internal/_generate_schema.py _ModelTypeStack 7 0 0 2 0 100.00%
pydantic/_internal/_generate_schema.py (no class) 296 3 8 70 2 98.09%
pydantic/_internal/_generics.py LimitedDict 8 0 0 4 0 100.00%
pydantic/_internal/_generics.py DeepChainMap 0 0 0 0 0 100.00%
pydantic/_internal/_generics.py PydanticGenericMetadata 0 0 0 0 0 100.00%
pydantic/_internal/_generics.py (no class) 218 11 5 90 0 93.18%
pydantic/_internal/_git.py (no class) 15 4 0 0 0 73.33%
pydantic/_internal/_import_utils.py (no class) 10 0 3 0 0 100.00%
pydantic/_internal/_internal_dataclass.py (no class) 4 0 0 2 0 100.00%
pydantic/_internal/_known_annotated_metadata.py (no class) 160 12 2 66 4 91.15%
pydantic/_internal/_mock_val_ser.py MockCoreSchema 22 4 0 10 3 78.12%
pydantic/_internal/_mock_val_ser.py MockValSer 17 6 0 8 0 60.00%
pydantic/_internal/_mock_val_ser.py (no class) 56 1 4 6 1 96.77%
pydantic/_internal/_model_construction.py _ModelNamespaceDict 4 0 0 2 0 100.00%
pydantic/_internal/_model_construction.py ModelMetaclass 90 0 3 36 1 99.21%
pydantic/_internal/_model_construction.py _DeprecatedFieldDescriptor 12 1 0 6 0 94.44%
pydantic/_internal/_model_construction.py _PydanticWeakRef 7 0 0 4 0 100.00%
pydantic/_internal/_model_construction.py (no class) 220 1 5 86 2 99.02%
pydantic/_internal/_namespace_utils.py NamespacesTuple 0 0 0 0 0 100.00%
pydantic/_internal/_namespace_utils.py LazyLocalNamespace 6 0 0 0 0 100.00%
pydantic/_internal/_namespace_utils.py NsResolver 26 0 0 10 0 100.00%
pydantic/_internal/_namespace_utils.py (no class) 49 0 0 6 0 100.00%
pydantic/_internal/_repr.py PlainRepr 1 0 0 0 0 100.00%
pydantic/_internal/_repr.py Representation 24 0 0 10 0 100.00%
pydantic/_internal/_repr.py (no class) 43 0 3 18 0 100.00%
pydantic/_internal/_schema_gather.py GatherResult 0 0 0 0 0 100.00%
pydantic/_internal/_schema_gather.py MissingDefinitionError 1 0 0 0 0 100.00%
pydantic/_internal/_schema_gather.py GatherContext 0 0 0 0 0 100.00%
pydantic/_internal/_schema_gather.py (no class) 123 3 0 98 5 95.48%
pydantic/_internal/_schema_generation_shared.py GenerateJsonSchemaHandler 11 1 0 4 1 86.67%
pydantic/_internal/_schema_generation_shared.py CallbackGetCoreSchemaHandler 22 2 0 10 2 87.50%
pydantic/_internal/_schema_generation_shared.py (no class) 16 0 7 0 0 100.00%
pydantic/_internal/_serializers.py (no class) 21 2 0 6 0 92.59%
pydantic/_internal/_signature.py _HAS_DEFAULT_FACTORY_CLASS 1 0 0 0 0 100.00%
pydantic/_internal/_signature.py (no class) 79 4 3 46 4 93.60%
pydantic/_internal/_typing_extra.py (no class) 319 10 127 100 3 96.90%
pydantic/_internal/_utils.py ValueItems 60 0 0 38 1 98.98%
pydantic/_internal/_utils.py SafeGetItemProxy 1 0 1 0 0 100.00%
pydantic/_internal/_utils.py deprecated_instance_property 4 0 2 2 0 100.00%
pydantic/_internal/_utils.py (no class) 105 0 27 20 0 100.00%
pydantic/_internal/_validate_call.py ValidateCallWrapper 28 0 0 8 0 100.00%
pydantic/_internal/_validate_call.py (no class) 32 0 0 2 0 100.00%
pydantic/_internal/_validators.py (no class) 273 1 0 92 1 99.45%
pydantic/_migration.py (no class) 34 0 0 14 0 100.00%
pydantic/alias_generators.py (no class) 17 0 0 2 0 100.00%
pydantic/aliases.py AliasPath 11 0 0 4 0 100.00%
pydantic/aliases.py AliasChoices 7 0 0 4 0 100.00%
pydantic/aliases.py AliasGenerator 10 0 0 4 0 100.00%
pydantic/aliases.py (no class) 24 0 0 0 0 100.00%
pydantic/annotated_handlers.py GetJsonSchemaHandler 0 0 2 0 0 100.00%
pydantic/annotated_handlers.py GetCoreSchemaHandler 0 0 5 0 0 100.00%
pydantic/annotated_handlers.py (no class) 15 0 4 0 0 100.00%
pydantic/class_validators.py (no class) 2 0 0 0 0 100.00%
pydantic/color.py RGBA 6 0 0 0 0 100.00%
pydantic/color.py Color 62 0 0 30 0 100.00%
pydantic/color.py (no class) 128 0 0 30 0 100.00%
pydantic/config.py ConfigDict 0 0 0 0 0 100.00%
pydantic/config.py (no class) 106 0 3 2 0 100.00%
pydantic/dataclasses.py (no class) 98 2 63 38 1 97.79%
pydantic/datetime_parse.py (no class) 2 0 0 0 0 100.00%
pydantic/decorator.py (no class) 2 0 0 0 0 100.00%
pydantic/env_settings.py (no class) 2 0 0 0 0 100.00%
pydantic/error_wrappers.py (no class) 2 0 0 0 0 100.00%
pydantic/errors.py PydanticErrorMixin 5 0 0 2 0 100.00%
pydantic/errors.py PydanticUserError 0 0 0 0 0 100.00%
pydantic/errors.py PydanticUndefinedAnnotation 7 0 0 0 0 100.00%
pydantic/errors.py PydanticImportError 1 0 0 0 0 100.00%
pydantic/errors.py PydanticSchemaGenerationError 1 0 0 0 0 100.00%
pydantic/errors.py PydanticInvalidForJsonSchema 1 0 0 0 0 100.00%
pydantic/errors.py (no class) 24 0 0 0 0 100.00%
pydantic/experimental/__init__.py (no class) 3 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _ValidateAs 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _ValidateAsDefer 1 1 0 0 0 0.00%
pydantic/experimental/pipeline.py _Transform 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _PipelineOr 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _PipelineAnd 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _Eq 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _NotEq 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _In 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _NotIn 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _Constraint 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _FieldTypeMarker 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _Pipeline 39 3 19 4 0 93.02%
pydantic/experimental/pipeline.py _SupportsRange 0 0 0 0 0 100.00%
pydantic/experimental/pipeline.py _SupportsLen 0 0 1 0 0 100.00%
pydantic/experimental/pipeline.py (no class) 315 17 32 124 16 92.48%
pydantic/fields.py _FromFieldInfoInputs 0 0 0 0 0 100.00%
pydantic/fields.py _FieldInfoInputs 0 0 0 0 0 100.00%
pydantic/fields.py FieldInfo 212 2 2 116 4 98.17%
pydantic/fields.py _EmptyKwargs 0 0 0 0 0 100.00%
pydantic/fields.py ModelPrivateAttr 16 0 0 10 0 100.00%
pydantic/fields.py ComputedFieldInfo 5 0 0 4 0 100.00%
pydantic/fields.py (no class) 212 0 194 48 1 99.62%
pydantic/functional_serializers.py PlainSerializer 8 0 0 0 0 100.00%
pydantic/functional_serializers.py WrapSerializer 9 0 0 0 0 100.00%
pydantic/functional_serializers.py (no class) 48 2 62 4 1 94.23%
pydantic/functional_validators.py AfterValidator 8 0 0 2 0 100.00%
pydantic/functional_validators.py BeforeValidator 9 0 0 2 0 100.00%
pydantic/functional_validators.py PlainValidator 14 0 0 2 0 100.00%
pydantic/functional_validators.py WrapValidator 9 0 0 2 0 100.00%
pydantic/functional_validators.py _OnlyValueValidatorClsMethod 0 0 1 0 0 100.00%
pydantic/functional_validators.py _V2ValidatorClsMethod 0 0 1 0 0 100.00%
pydantic/functional_validators.py _OnlyValueWrapValidatorClsMethod 0 0 1 0 0 100.00%
pydantic/functional_validators.py _V2WrapValidatorClsMethod 0 0 1 0 0 100.00%
pydantic/functional_validators.py ModelWrapValidatorHandler 0 0 1 0 0 100.00%
pydantic/functional_validators.py ModelWrapValidatorWithoutInfo 0 0 0 0 0 100.00%
pydantic/functional_validators.py ModelWrapValidator 0 0 0 0 0 100.00%
pydantic/functional_validators.py FreeModelBeforeValidatorWithoutInfo 0 0 1 0 0 100.00%
pydantic/functional_validators.py ModelBeforeValidatorWithoutInfo 0 0 1 0 0 100.00%
pydantic/functional_validators.py FreeModelBeforeValidator 0 0 1 0 0 100.00%
pydantic/functional_validators.py ModelBeforeValidator 0 0 1 0 0 100.00%
pydantic/functional_validators.py (no class) 108 0 122 16 2 98.39%
pydantic/generics.py (no class) 2 0 0 0 0 100.00%
pydantic/json.py (no class) 2 0 0 0 0 100.00%
pydantic/json_schema.py PydanticJsonSchemaWarning 0 0 0 0 0 100.00%
pydantic/json_schema.py _DefinitionsRemapping 37 1 0 24 1 96.72%
pydantic/json_schema.py GenerateJsonSchema 763 39 7 368 34 93.19%
pydantic/json_schema.py GenerateJsonSchema.ValidationsMapping 0 0 0 0 0 100.00%
pydantic/json_schema.py WithJsonSchema 7 0 0 4 0 100.00%
pydantic/json_schema.py Examples 24 1 2 16 2 92.50%
pydantic/json_schema.py (no class) 234 2 14 36 2 98.52%
pydantic/main.py BaseModel 331 9 137 160 1 97.56%
pydantic/main.py (no class) 219 0 72 30 2 99.20%
pydantic/mypy.py PydanticPlugin 23 1 0 12 1 94.29%
pydantic/mypy.py PydanticPluginConfig 14 0 2 8 0 100.00%
pydantic/mypy.py PydanticModelField 48 1 0 20 3 94.12%
pydantic/mypy.py PydanticModelClassVar 4 2 0 0 0 50.00%
pydantic/mypy.py PydanticModelTransformer 313 34 13 220 24 87.62%
pydantic/mypy.py ModelConfigData 13 0 0 6 0 100.00%
pydantic/mypy.py (no class) 189 3 18 28 3 97.24%
pydantic/networks.py UrlConstraints 9 1 0 4 1 84.62%
pydantic/networks.py _BaseUrl 40 5 0 8 1 87.50%
pydantic/networks.py _BaseMultiHostUrl 32 15 0 8 2 47.50%
pydantic/networks.py AnyUrl 0 0 0 0 0 100.00%
pydantic/networks.py AnyHttpUrl 0 0 0 0 0 100.00%
pydantic/networks.py HttpUrl 0 0 0 0 0 100.00%
pydantic/networks.py AnyWebsocketUrl 0 0 0 0 0 100.00%
pydantic/networks.py WebsocketUrl 0 0 0 0 0 100.00%
pydantic/networks.py FileUrl 0 0 0 0 0 100.00%
pydantic/networks.py FtpUrl 0 0 0 0 0 100.00%
pydantic/networks.py PostgresDsn 1 1 0 0 0 0.00%
pydantic/networks.py CockroachDsn 1 1 0 0 0 0.00%
pydantic/networks.py AmqpDsn 0 0 0 0 0 100.00%
pydantic/networks.py RedisDsn 1 0 0 0 0 100.00%
pydantic/networks.py MongoDsn 0 0 0 0 0 100.00%
pydantic/networks.py KafkaDsn 0 0 0 0 0 100.00%
pydantic/networks.py NatsDsn 0 0 0 0 0 100.00%
pydantic/networks.py MySQLDsn 0 0 0 0 0 100.00%
pydantic/networks.py MariaDBDsn 0 0 0 0 0 100.00%
pydantic/networks.py ClickHouseDsn 0 0 0 0 0 100.00%
pydantic/networks.py SnowflakeDsn 1 1 0 0 0 0.00%
pydantic/networks.py NameEmail 15 0 0 4 0 100.00%
pydantic/networks.py (no class) 279 0 9 8 0 100.00%
pydantic/parse.py (no class) 2 0 0 0 0 100.00%
pydantic/plugin/__init__.py SchemaTypePath 0 0 0 0 0 100.00%
pydantic/plugin/__init__.py PydanticPluginProtocol 0 0 19 0 0 100.00%
pydantic/plugin/__init__.py BaseValidateHandlerProtocol 0 0 18 0 0 100.00%
pydantic/plugin/__init__.py ValidatePythonHandlerProtocol 1 1 0 0 0 0.00%
pydantic/plugin/__init__.py ValidateJsonHandlerProtocol 1 1 0 0 0 0.00%
pydantic/plugin/__init__.py ValidateStringsHandlerProtocol 1 1 0 0 0 0.00%
pydantic/plugin/__init__.py (no class) 17 0 29 0 0 100.00%
pydantic/plugin/_loader.py (no class) 33 4 2 16 2 87.76%
pydantic/plugin/_schema_validator.py PluggableSchemaValidator 17 0 2 8 0 100.00%
pydantic/plugin/_schema_validator.py (no class) 53 0 2 16 0 100.00%
pydantic/root_model.py _RootModelMetaclass 0 0 0 0 0 100.00%
pydantic/root_model.py RootModel 28 0 12 8 0 100.00%
pydantic/root_model.py (no class) 26 0 23 0 0 100.00%
pydantic/schema.py (no class) 2 0 0 0 0 100.00%
pydantic/tools.py (no class) 2 0 0 0 0 100.00%
pydantic/type_adapter.py TypeAdapter 94 8 2 34 4 90.62%
pydantic/type_adapter.py (no class) 59 3 16 4 1 93.65%
pydantic/types.py Strict 1 0 0 0 0 100.00%
pydantic/types.py AllowInfNan 1 0 0 0 0 100.00%
pydantic/types.py StringConstraints 8 0 0 8 0 100.00%
pydantic/types.py UuidVersion 11 1 0 2 1 84.62%
pydantic/types.py PathType 21 0 0 10 0 100.00%
pydantic/types.py _SecretBase 6 0 1 0 0 100.00%
pydantic/types.py Secret 18 1 0 10 2 89.29%
pydantic/types.py _SecretField 8 0 0 0 0 100.00%
pydantic/types.py SecretStr 2 0 0 0 0 100.00%
pydantic/types.py SecretBytes 2 0 0 0 0 100.00%
pydantic/types.py PaymentCardBrand 1 0 0 0 0 100.00%
pydantic/types.py PaymentCardNumber 46 0 0 24 0 100.00%
pydantic/types.py ByteSize 36 1 0 12 1 95.83%
pydantic/types.py EncoderProtocol 0 0 24 0 0 100.00%
pydantic/types.py Base64Encoder 6 0 0 0 0 100.00%
pydantic/types.py Base64UrlEncoder 6 0 0 0 0 100.00%
pydantic/types.py EncodedBytes 9 0 0 0 0 100.00%
pydantic/types.py EncodedStr 9 0 0 0 0 100.00%
pydantic/types.py GetPydanticSchema 5 1 0 4 1 77.78%
pydantic/types.py Tag 4 0 0 0 0 100.00%
pydantic/types.py Discriminator 32 2 0 20 2 92.31%
pydantic/types.py _AllowAnyJson 2 0 0 0 0 100.00%
pydantic/types.py _OnErrorOmit 1 0 0 0 0 100.00%
pydantic/types.py FailFast 0 0 0 0 0 100.00%
pydantic/types.py (no class) 411 3 28 50 4 98.48%
pydantic/typing.py (no class) 2 0 0 0 0 100.00%
pydantic/utils.py (no class) 2 0 0 0 0 100.00%
pydantic/validate_call_decorator.py (no class) 41 0 9 14 0 100.00%
pydantic/validators.py (no class) 2 0 0 0 0 100.00%
pydantic/version.py (no class) 29 0 0 4 0 100.00%
pydantic/warnings.py PydanticDeprecationWarning 8 0 0 2 0 100.00%
pydantic/warnings.py PydanticDeprecatedSince20 1 0 0 0 0 100.00%
pydantic/warnings.py PydanticDeprecatedSince26 1 1 0 0 0 0.00%
pydantic/warnings.py PydanticDeprecatedSince29 1 0 0 0 0 100.00%
pydantic/warnings.py PydanticDeprecatedSince210 1 0 0 0 0 100.00%
pydantic/warnings.py PydanticDeprecatedSince211 1 0 0 0 0 100.00%
pydantic/warnings.py GenericBeforeBaseModelWarning 0 0 0 0 0 100.00%
pydantic/warnings.py PydanticExperimentalWarning 0 0 0 0 0 100.00%
pydantic/warnings.py (no class) 22 0 0 0 0 100.00%
Total   9819 339 1284 3546 206 95.46%

No items found using the specified filter.