Coverage report: 33%

Files Functions Classes

coverage.py v7.5.0, created at 2024-04-25 10:20 -0700

File function statements missing excluded branches partial coverage
python/felis/__init__.py (no function) 6 0 0 0 0 100%
python/felis/check.py FelisValidator.__init__ 1 1 0 0 0 0%
python/felis/check.py FelisValidator.check_schema 2 2 0 0 0 0%
python/felis/check.py FelisValidator.check_schema_version 23 23 0 26 0 0%
python/felis/check.py FelisValidator.check_table 3 3 0 0 0 0%
python/felis/check.py FelisValidator.check_column 27 27 0 10 0 0%
python/felis/check.py FelisValidator.check_primary_key 1 1 0 0 0 0%
python/felis/check.py FelisValidator.check_constraint 7 7 0 4 0 0%
python/felis/check.py FelisValidator.check_index 5 5 0 2 0 0%
python/felis/check.py FelisValidator._assert_id 6 6 0 2 0 0%
python/felis/check.py FelisValidator._assert_name 3 3 0 2 0 0%
python/felis/check.py FelisValidator._assert_datatype 9 9 0 2 0 0%
python/felis/check.py FelisValidator._check_visited 3 3 0 2 0 0%
python/felis/check.py CheckingVisitor.__init__ 2 2 0 0 0 0%
python/felis/check.py CheckingVisitor.visit_schema 5 5 0 4 0 0%
python/felis/check.py CheckingVisitor.visit_schema_version 1 1 0 0 0 0%
python/felis/check.py CheckingVisitor.visit_table 8 8 0 6 0 0%
python/felis/check.py CheckingVisitor.visit_column 1 1 0 0 0 0%
python/felis/check.py CheckingVisitor.visit_primary_key 1 1 0 0 0 0%
python/felis/check.py CheckingVisitor.visit_constraint 1 1 0 0 0 0%
python/felis/check.py CheckingVisitor.visit_index 1 1 0 0 0 0%
python/felis/check.py (no function) 33 0 0 0 0 100%
python/felis/cli.py cli 3 3 0 2 0 0%
python/felis/cli.py create 32 32 0 16 0 0%
python/felis/cli.py init_tap 3 3 0 0 0 0%
python/felis/cli.py load_tap 14 14 0 4 0 0%
python/felis/cli.py modify_tap 16 16 0 6 0 0%
python/felis/cli.py basic_check 5 5 0 0 0 0%
python/felis/cli.py normalize 6 6 0 0 0 0%
python/felis/cli.py merge 18 18 0 8 0 0%
python/felis/cli.py validate 15 15 0 6 0 0%
python/felis/cli.py dump_json 13 13 0 8 0 0%
python/felis/cli.py _dump 5 5 0 0 0 0%
python/felis/cli.py _dump._dict_representer 1 1 0 0 0 0%
python/felis/cli.py _normalize 6 6 0 2 0 0%
python/felis/cli.py (no function) 91 1 0 132 1 99%
python/felis/datamodel.py BaseObject.check_description 8 8 0 6 0 0%
python/felis/datamodel.py string_to_typeengine 20 20 0 12 0 0%
python/felis/datamodel.py Column.check_ivoa_ucd 6 6 0 2 0 0%
python/felis/datamodel.py Column.check_units 11 11 0 4 0 0%
python/felis/datamodel.py Column.validate_datatypes 22 22 0 15 0 0%
python/felis/datamodel.py Index.check_columns_or_expressions 5 5 0 4 0 0%
python/felis/datamodel.py Table.create_constraints 12 12 0 10 0 0%
python/felis/datamodel.py Table.check_unique_column_names 3 3 0 3 0 0%
python/felis/datamodel.py SchemaIdVisitor.__init__ 2 2 0 0 0 0%
python/felis/datamodel.py SchemaIdVisitor.add 6 6 0 6 0 0%
python/felis/datamodel.py SchemaIdVisitor.visit_schema 5 5 0 2 0 0%
python/felis/datamodel.py SchemaIdVisitor.visit_table 5 5 0 4 0 0%
python/felis/datamodel.py SchemaIdVisitor.visit_column 1 1 0 0 0 0%
python/felis/datamodel.py SchemaIdVisitor.visit_constraint 1 1 0 0 0 0%
python/felis/datamodel.py Schema.check_unique_table_names 3 3 0 3 0 0%
python/felis/datamodel.py Schema._create_id_map 9 9 0 4 0 0%
python/felis/datamodel.py Schema.model_post_init 1 1 0 0 0 0%
python/felis/datamodel.py Schema.__getitem__ 3 3 0 2 0 0%
python/felis/datamodel.py Schema.__contains__ 1 1 0 0 0 0%
python/felis/datamodel.py (no function) 177 0 0 44 0 100%
python/felis/db/__init__.py (no function) 0 0 0 0 0 100%
python/felis/db/_variants.py process_variant_override 9 9 0 6 0 0%
python/felis/db/_variants.py make_variant_dict 7 7 0 4 0 0%
python/felis/db/_variants.py (no function) 17 0 0 0 0 100%
python/felis/db/sqltypes.py compile_tinyint 1 1 0 0 0 0%
python/felis/db/sqltypes.py boolean 1 1 0 0 0 0%
python/felis/db/sqltypes.py byte 1 1 0 0 0 0%
python/felis/db/sqltypes.py short 1 1 0 0 0 0%
python/felis/db/sqltypes.py int 1 1 0 0 0 0%
python/felis/db/sqltypes.py long 1 1 0 0 0 0%
python/felis/db/sqltypes.py float 1 1 0 0 0 0%
python/felis/db/sqltypes.py double 1 1 0 0 0 0%
python/felis/db/sqltypes.py char 1 1 0 0 0 0%
python/felis/db/sqltypes.py string 1 1 0 0 0 0%
python/felis/db/sqltypes.py unicode 1 1 0 0 0 0%
python/felis/db/sqltypes.py text 1 1 0 0 0 0%
python/felis/db/sqltypes.py binary 1 1 0 0 0 0%
python/felis/db/sqltypes.py timestamp 1 1 0 0 0 0%
python/felis/db/sqltypes.py get_type_func 3 3 0 2 0 0%
python/felis/db/sqltypes.py _vary 7 7 0 4 0 0%
python/felis/db/sqltypes.py (no function) 42 0 0 2 0 100%
python/felis/metadata.py InsertDump.__init__ 2 2 0 0 0 0%
python/felis/metadata.py InsertDump.dump 15 15 0 10 0 0%
python/felis/metadata.py get_datatype_with_variants 9 9 0 4 0 0%
python/felis/metadata.py MetaDataBuilder.__init__ 8 8 0 4 0 0%
python/felis/metadata.py MetaDataBuilder.build 3 3 0 0 0 0%
python/felis/metadata.py MetaDataBuilder.build_tables 5 5 0 4 0 0%
python/felis/metadata.py MetaDataBuilder.build_primary_key 1 1 0 2 0 0%
python/felis/metadata.py MetaDataBuilder.build_table 15 15 0 10 0 0%
python/felis/metadata.py MetaDataBuilder.build_column 10 10 0 0 0 0%
python/felis/metadata.py MetaDataBuilder.build_constraints 5 5 0 4 0 0%
python/felis/metadata.py MetaDataBuilder.build_constraint 18 18 0 12 0 0%
python/felis/metadata.py MetaDataBuilder.build_index 5 5 0 2 0 0%
python/felis/metadata.py ConnectionWrapper.__init__ 1 1 0 0 0 0%
python/felis/metadata.py ConnectionWrapper.execute 7 7 0 6 0 0%
python/felis/metadata.py DatabaseContext.__init__ 3 3 0 0 0 0%
python/felis/metadata.py DatabaseContext.create_if_not_exists 13 13 0 4 0 0%
python/felis/metadata.py DatabaseContext.drop_if_exists 13 13 0 4 0 0%
python/felis/metadata.py DatabaseContext.create_all 1 1 0 0 0 0%
python/felis/metadata.py DatabaseContext.create_mock_engine 4 4 0 0 0 0%
python/felis/metadata.py (no function) 41 0 0 2 0 100%
python/felis/simple.py _strip_keys 2 2 0 2 0 0%
python/felis/simple.py _make_iterable 3 3 0 2 0 0%
python/felis/simple.py SimpleVisitor.__init__ 2 2 0 0 0 0%
python/felis/simple.py SimpleVisitor.visit_schema 4 4 0 2 0 0%
python/felis/simple.py SimpleVisitor.visit_schema_version 4 4 0 2 0 0%
python/felis/simple.py SimpleVisitor.visit_table 6 6 0 6 0 0%
python/felis/simple.py SimpleVisitor.visit_column 7 7 0 2 0 0%
python/felis/simple.py SimpleVisitor.visit_primary_key 5 5 0 4 0 0%
python/felis/simple.py SimpleVisitor.visit_constraint 9 9 0 10 0 0%
python/felis/simple.py SimpleVisitor.visit_index 2 2 0 2 0 0%
python/felis/simple.py (no function) 126 0 0 18 0 100%
python/felis/tap.py init_tables 48 48 0 4 0 0%
python/felis/tap.py TapLoadingVisitor.__init__ 7 7 0 0 0 0%
python/felis/tap.py TapLoadingVisitor.from_mock_connection 4 4 0 0 0 0%
python/felis/tap.py TapLoadingVisitor.visit_schema 34 34 0 12 0 0%
python/felis/tap.py TapLoadingVisitor.visit_constraints 10 10 0 6 0 0%
python/felis/tap.py TapLoadingVisitor.visit_table 14 14 0 4 0 0%
python/felis/tap.py TapLoadingVisitor.check_column 10 10 0 8 0 0%
python/felis/tap.py TapLoadingVisitor.visit_column 27 27 0 4 0 0%
python/felis/tap.py TapLoadingVisitor.visit_primary_key 7 7 0 8 0 0%
python/felis/tap.py TapLoadingVisitor.visit_constraint 36 36 0 20 0 0%
python/felis/tap.py TapLoadingVisitor.visit_index 4 4 0 4 0 0%
python/felis/tap.py TapLoadingVisitor._schema_name 4 4 0 2 0 0%
python/felis/tap.py TapLoadingVisitor._table_name 4 4 0 2 0 0%
python/felis/tap.py _insert 8 8 0 4 0 0%
python/felis/tap.py (no function) 38 0 0 2 0 100%
python/felis/types.py FelisType.__init_subclass__ 7 0 0 0 0 100%
python/felis/types.py FelisType.felis_type 4 4 0 0 0 0%
python/felis/types.py (no function) 26 0 0 4 0 100%
python/felis/utils.py ReorderingVisitor.__init__ 1 1 0 0 0 0%
python/felis/utils.py ReorderingVisitor.visit_schema 5 5 0 4 0 0%
python/felis/utils.py ReorderingVisitor.visit_table 14 14 0 14 0 0%
python/felis/utils.py ReorderingVisitor.visit_column 3 3 0 2 0 0%
python/felis/utils.py ReorderingVisitor.visit_primary_key 1 1 0 0 0 0%
python/felis/utils.py ReorderingVisitor.visit_constraint 1 1 0 0 0 0%
python/felis/utils.py ReorderingVisitor.visit_index 3 3 0 2 0 0%
python/felis/utils.py _new_order 8 8 0 8 0 0%
python/felis/utils.py (no function) 14 0 0 0 0 100%
python/felis/validation.py RspTable.check_tap_principal 4 4 0 4 0 0%
python/felis/validation.py RspSchema.check_tap_table_indexes 8 8 0 6 0 0%
python/felis/validation.py get_schema 5 5 0 4 0 0%
python/felis/validation.py (no function) 28 0 0 12 0 100%
python/felis/version.py (no function) 5 0 0 0 0 100%
python/felis/visitor.py Visitor.visit_schema 1 1 0 0 0 0%
python/felis/visitor.py Visitor.visit_schema_version 1 1 0 0 0 0%
python/felis/visitor.py Visitor.visit_table 1 1 0 0 0 0%
python/felis/visitor.py Visitor.visit_column 1 1 0 0 0 0%
python/felis/visitor.py Visitor.visit_primary_key 1 1 0 0 0 0%
python/felis/visitor.py Visitor.visit_constraint 1 1 0 0 0 0%
python/felis/visitor.py Visitor.visit_index 1 1 0 0 0 0%
python/felis/visitor.py (no function) 27 0 0 14 0 100%
tests/__init__.py (no function) 0 0 0 0 0 100%
tests/test_check.py remove_key 3 3 0 0 0 0%
tests/test_check.py replace_key 7 7 0 2 0 0%
tests/test_check.py VisitorTestCase.setUp 3 3 0 2 0 0%
tests/test_check.py VisitorTestCase.test_check 2 2 0 0 0 0%
tests/test_check.py VisitorTestCase.test_error_schema 7 7 0 8 0 0%
tests/test_check.py VisitorTestCase.test_error_table 16 16 0 16 0 0%
tests/test_check.py VisitorTestCase.test_error_column 19 19 0 20 0 0%
tests/test_check.py VisitorTestCase.test_error_index 20 20 0 16 0 0%
tests/test_check.py VisitorTestCase.test_version_errors 26 26 0 16 0 0%
tests/test_check.py (no function) 25 1 0 6 1 94%
tests/test_cli.py CliTestCase.setUp 1 1 0 0 0 0%
tests/test_cli.py CliTestCase.tearDown 1 1 0 0 0 0%
tests/test_cli.py CliTestCase.test_basic_check 3 3 0 0 0 0%
tests/test_cli.py CliTestCase.test_create_all 4 4 0 0 0 0%
tests/test_cli.py CliTestCase.test_create_all_dry_run 4 4 0 0 0 0%
tests/test_cli.py CliTestCase.test_normalize 3 3 0 0 0 0%
tests/test_cli.py CliTestCase.test_init_tap 4 4 0 0 0 0%
tests/test_cli.py CliTestCase.test_load_tap 6 6 0 0 0 0%
tests/test_cli.py CliTestCase.test_load_tap_mock 4 4 0 0 0 0%
tests/test_cli.py CliTestCase.test_modify_tap 3 3 0 0 0 0%
tests/test_cli.py CliTestCase.test_merge 3 3 0 0 0 0%
tests/test_cli.py CliTestCase.test_validate_default 3 3 0 0 0 0%
tests/test_cli.py CliTestCase.test_validate_default_with_require_description 6 6 0 0 0 0%
tests/test_cli.py CliTestCase.test_validate_rsp 3 3 0 0 0 0%
tests/test_cli.py (no function) 29 1 0 2 1 94%
tests/test_datamodel.py DataModelTestCase.test_validation 3 3 0 2 0 0%
tests/test_datamodel.py ColumnTestCase.test_validation 36 36 0 14 0 0%
tests/test_datamodel.py ColumnTestCase.test_require_description 12 12 0 8 0 0%
tests/test_datamodel.py ColumnTestCase.test_require_description.MockValidationInfo.__init__ 1 1 0 0 0 0%
tests/test_datamodel.py ColumnTestCase.test_require_description._check_description 1 1 0 0 0 0%
tests/test_datamodel.py ConstraintTestCase.test_unique_constraint_validation 15 15 0 6 0 0%
tests/test_datamodel.py ConstraintTestCase.test_index_validation 17 17 0 8 0 0%
tests/test_datamodel.py ConstraintTestCase.test_foreign_key_validation 17 17 0 6 0 0%
tests/test_datamodel.py ConstraintTestCase.test_check_constraint_validation 15 15 0 6 0 0%
tests/test_datamodel.py TableTestCase.test_validation 13 13 0 8 0 0%
tests/test_datamodel.py SchemaTestCase.test_validation 18 18 0 12 0 0%
tests/test_datamodel.py SchemaTestCase.test_schema_object_ids 10 10 0 4 0 0%
tests/test_datamodel.py SchemaVersionTest.test_validation 12 12 0 2 0 0%
tests/test_datamodel.py (no function) 27 1 0 2 1 93%
tests/test_datatypes.py ColumnGenerator.__init__ 4 4 0 0 0 0%
tests/test_datatypes.py ColumnGenerator.col 1 1 0 0 0 0%
tests/test_datatypes.py RedundantDatatypesTest.test_mysql_datatypes 32 32 0 26 0 0%
tests/test_datatypes.py (no function) 10 1 0 2 1 83%
tests/test_metadata.py MetaDataTestCase.setUp 3 3 0 2 0 0%
tests/test_metadata.py MetaDataTestCase.connection 1 1 0 0 0 0%
tests/test_metadata.py MetaDataTestCase.test_create_all 52 52 0 20 0 0%
tests/test_metadata.py MetaDataTestCase.test_create_all._sorted_indexes 1 1 0 2 0 0%
tests/test_metadata.py MetaDataTestCase.test_create_all._sorted_constraints 1 1 0 2 0 0%
tests/test_metadata.py MetaDataTestCase.test_builder 33 33 0 36 0 0%
tests/test_metadata.py (no function) 16 1 0 2 1 89%
tests/test_simple.py _names 1 1 0 2 0 0%
tests/test_simple.py VisitorTestCase.setUp 3 3 0 2 0 0%
tests/test_simple.py VisitorTestCase.test_schema 70 70 0 14 0 0%
tests/test_simple.py (no function) 16 1 0 2 1 89%
tests/test_tap.py VisitorTestCase.setUp 4 4 0 2 0 0%
tests/test_tap.py VisitorTestCase.tearDown 1 1 0 0 0 0%
tests/test_tap.py VisitorTestCase.test_tap 6 6 0 0 0 0%
tests/test_tap.py (no function) 19 1 0 2 1 90%
tests/test_utils.py VisitorTestCase.setUp 3 3 0 2 0 0%
tests/test_utils.py VisitorTestCase.test_reordering 7 7 0 0 0 0%
tests/test_utils.py VisitorTestCase.test_add_type 7 7 0 0 0 0%
tests/test_utils.py (no function) 16 1 0 2 1 89%
tests/test_validation.py RSPSchemaTestCase.test_rsp_validation 29 29 0 26 0 0%
tests/test_validation.py RSPSchemaTestCase.test_get_schema 6 6 0 2 0 0%
tests/test_validation.py (no function) 7 0 0 0 0 100%
Total   2303 1469 0 969 9 33%

No items found using the specified filter.