Skip to content

Commit

Permalink
Tests for aliases that point to non-existent fields #62
Browse files Browse the repository at this point in the history
  • Loading branch information
aweakley committed Jun 27, 2024
1 parent 2dee3d0 commit 1a5ebd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 2 additions & 0 deletions edtf/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def _check_field(self, field_alias):
f"You must specify a '{field_alias}' for EDTFField",
hint=None,
obj=self,
id="python-edtf.EDTF01",
)
]

Expand All @@ -227,6 +228,7 @@ def _check_field(self, field_alias):
f"'{self.name}' refers to a non-existent '{field_alias}' field: '{field_name}'",
hint=None,
obj=self,
id="python-edtf.EDTF02",
)
]
return []
28 changes: 12 additions & 16 deletions edtf_django_tests/edtf_integration/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,16 @@ def test_field_related_field_specification(self):
errors = edtf_field_on_model.check()
self.assertEqual(len(errors), 1)
self.assertTrue(field_alias in errors[0].msg)
# Replace the field so later tests can still work
setattr(edtf_field_on_model, field_alias, orig_value)
# Should be an 'alias not specified' error
self.assertEqual(errors[0].id, "python-edtf.EDTF01")

# Point the alias to a non-existent field
setattr(edtf_field_on_model, field_alias, "fake")
errors = edtf_field_on_model.check()
self.assertEqual(len(errors), 1)
self.assertTrue(field_alias in errors[0].msg)
# Should be a 'non-eixstent field' error
self.assertEqual(errors[0].id, "python-edtf.EDTF02")

# TODO: this is not working yet
# # Remove the field from the model
# referenced_field_name = getattr(edtf_field_on_model, field_alias)
# orig_fields = TestEvent._meta.local_fields
# TestEvent._meta.local_fields = [ # type: ignore
# field
# for field in TestEvent._meta.local_fields
# if field.name != referenced_field_name
# ]
# errors = TestEvent._meta.get_field("date_edtf").check()
# self.assertEqual(len(errors), 1)
# self.assertTrue(referenced_field_name in errors[0].msg)
# # Replace the field so later tests can still work
# TestEvent._meta.local_fields = orig_fields
# Repair the field so later tests can still work
setattr(edtf_field_on_model, field_alias, orig_value)

10 comments on commit 1a5ebd5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/edtf
   __init__.py40100% 
   appsettings.py28485%10–13
   convert.py634430%11–19, 21, 38–39, 52, 61, 72–73, 75, 104, 107–109, 113, 117, 136–156
   fields.py1192281%70, 84, 89, 91, 94–95, 97–98, 100, 105, 109–112, 135–136, 157, 167–168, 172–173, 181
   jdutil.py986632%37, 55, 91–92, 105, 152, 154–155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 251–252, 254–255, 257–258, 260, 262, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py71710%3–4, 6, 9–13, 16–21, 24–25, 28–29, 32–37, 40–44, 52–53, 56–62, 65–71, 74–79, 82–85, 88–91, 94–97, 100–107
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/edtf/natlang
   __init__.py20100% 
   en.py1477151%33, 43–44, 46–49, 54–55, 58–61, 63, 67–70, 72–73, 75–77, 85–87, 89–93, 103, 105, 118, 125, 156–158, 160–165, 168–170, 172–177, 201–204, 208, 223, 225–226, 228, 245, 247, 255, 257, 259, 261, 266, 269, 275
   tests.py10100%3, 5, 10, 179, 184–185, 190–191, 207, 211
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/edtf/parser
   __init__.py40100% 
   edtf_exceptions.py151126%13–19, 22–24, 29
   grammar.py1281191%148–151, 350, 355–360
   parser_classes.py63335044%69, 71, 78–81, 83–84, 86–87, 110–112, 116, 119, 122, 181, 183, 190, 192, 198–202, 207–213, 220–224, 229–235, 246, 257, 286, 290, 302–304, 309, 317–319, 322, 337–338, 342, 371–375, 378, 383–384, 387, 390, 393, 396–400, 403–407, 427–429, 453, 457, 462, 464, 483, 490, 506, 515–517, 519–521, 524–525, 527, 530–533, 535, 537–539, 541, 545, 558, 565–568, 571, 574–577, 580–583, 585–589, 592–593, 596, 600, 606–607, 610, 613–614, 617, 621–622, 625–626, 629, 635, 640–641, 647, 649, 652–654, 660, 665–666, 669, 675, 677, 681–695, 700–702, 706, 708, 711–713, 717, 719, 722–724, 730–733, 738–739, 744–745, 747, 750, 753–755, 757, 760, 763–766, 768–774, 781–784, 786–792, 801–802, 805, 808, 811–813, 815, 823, 842–844, 846–849, 851–852, 854–855, 857, 859, 868, 871, 874, 881–882, 884–885, 887, 889, 891–892, 894, 896–901, 903, 905, 907–908, 910, 913–915, 918–920, 923–925, 933, 935–936, 939–940, 943–944, 947–948, 950–951, 955, 959–960, 963, 968–969, 973–974, 976–984, 986, 996–997, 999, 1001–1002, 1004, 1007, 1012, 1017, 1023–1024, 1027, 1030, 1033, 1035–1037, 1039, 1044–1045, 1047, 1056–1057, 1060, 1063, 1066–1067, 1069, 1078–1079, 1081–1083, 1085–1088, 1100–1102, 1107, 1110–1111, 1113, 1118
   tests.py89890%3–4, 6, 8–10, 26, 229, 243, 262, 284, 286–289, 291–293, 295–299, 302–303, 305–306, 309–311, 314–315, 318–321, 324, 327–331, 334, 337, 340, 343–348, 351, 354, 357, 362–363, 365–366, 369–370, 372–374, 377, 379–384, 386–393, 396–398, 400, 403–404, 410–414
edtf
   __init__.py40100% 
   appsettings.py28292%12–13
   convert.py631182%11–19, 21, 73
   fields.py1191190%1, 3–8, 10–13, 15, 23, 29, 31, 33–35, 38–39, 51–58, 60, 63, 65–70, 72–76, 78–79, 81, 83–84, 86, 88–89, 91, 93–95, 97–98, 100, 102–105, 107, 109–112, 114, 123–125, 128, 131–132, 135–136, 139–140, 142–144, 147, 151, 153, 155, 157, 160–173, 179, 181–182, 184–185, 190–191, 193–194, 196, 204, 206, 208–209, 212–213, 223–226, 234
   jdutil.py984455%37, 55, 91–92, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py710100% 
edtf/natlang
   __init__.py20100% 
   en.py1471192%55, 58, 118, 164–165, 176–177, 203–204, 208, 275
   tests.py10190%211
edtf/parser
   __init__.py40100% 
   edtf_exceptions.py15286%24, 29
   grammar.py128298%357, 359
   parser_classes.py6339884%110–112, 119, 122, 183, 189–193, 200–202, 209–213, 222–224, 229–235, 246, 337–338, 371–375, 378, 393, 396–400, 403–407, 427–429, 545, 581, 589, 593, 640–641, 647, 665–666, 669, 675, 682, 684, 688, 695, 760, 766, 770, 784, 788, 882, 900–901, 903, 908, 914, 919, 924, 960, 963, 969, 974, 976–984, 999, 1004, 1081, 1085, 1118
   tests.py89198%400
TOTAL2822104063% 

Tests Skipped Failures Errors Time
279 0 💤 0 ❌ 0 🔥 4.409s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/edtf
   __init__.py40100% 
   appsettings.py28485%10–13
   convert.py634430%11–19, 21, 38–39, 52, 61, 72–73, 75, 104, 107–109, 113, 117, 136–156
   fields.py1192281%70, 84, 89, 91, 94–95, 97–98, 100, 105, 109–112, 135–136, 157, 167–168, 172–173, 181
   jdutil.py986632%37, 55, 91–92, 105, 152, 154–155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 251–252, 254–255, 257–258, 260, 262, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py71710%3–4, 6, 9–13, 16–21, 24–25, 28–29, 32–37, 40–44, 52–53, 56–62, 65–71, 74–79, 82–85, 88–91, 94–97, 100–107
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/edtf/natlang
   __init__.py20100% 
   en.py1477151%33, 43–44, 46–49, 54–55, 58–61, 63, 67–70, 72–73, 75–77, 85–87, 89–93, 103, 105, 118, 125, 156–158, 160–165, 168–170, 172–177, 201–204, 208, 223, 225–226, 228, 245, 247, 255, 257, 259, 261, 266, 269, 275
   tests.py10100%3, 5, 10, 179, 184–185, 190–191, 207, 211
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/edtf/parser
   __init__.py40100% 
   edtf_exceptions.py151126%13–19, 22–24, 29
   grammar.py1281191%148–151, 350, 355–360
   parser_classes.py63335044%69, 71, 78–81, 83–84, 86–87, 110–112, 116, 119, 122, 181, 183, 190, 192, 198–202, 207–213, 220–224, 229–235, 246, 257, 286, 290, 302–304, 309, 317–319, 322, 337–338, 342, 371–375, 378, 383–384, 387, 390, 393, 396–400, 403–407, 427–429, 453, 457, 462, 464, 483, 490, 506, 515–517, 519–521, 524–525, 527, 530–533, 535, 537–539, 541, 545, 558, 565–568, 571, 574–577, 580–583, 585–589, 592–593, 596, 600, 606–607, 610, 613–614, 617, 621–622, 625–626, 629, 635, 640–641, 647, 649, 652–654, 660, 665–666, 669, 675, 677, 681–695, 700–702, 706, 708, 711–713, 717, 719, 722–724, 730–733, 738–739, 744–745, 747, 750, 753–755, 757, 760, 763–766, 768–774, 781–784, 786–792, 801–802, 805, 808, 811–813, 815, 823, 842–844, 846–849, 851–852, 854–855, 857, 859, 868, 871, 874, 881–882, 884–885, 887, 889, 891–892, 894, 896–901, 903, 905, 907–908, 910, 913–915, 918–920, 923–925, 933, 935–936, 939–940, 943–944, 947–948, 950–951, 955, 959–960, 963, 968–969, 973–974, 976–984, 986, 996–997, 999, 1001–1002, 1004, 1007, 1012, 1017, 1023–1024, 1027, 1030, 1033, 1035–1037, 1039, 1044–1045, 1047, 1056–1057, 1060, 1063, 1066–1067, 1069, 1078–1079, 1081–1083, 1085–1088, 1100–1102, 1107, 1110–1111, 1113, 1118
   tests.py89890%3–4, 6, 8–10, 26, 229, 243, 262, 284, 286–289, 291–293, 295–299, 302–303, 305–306, 309–311, 314–315, 318–321, 324, 327–331, 334, 337, 340, 343–348, 351, 354, 357, 362–363, 365–366, 369–370, 372–374, 377, 379–384, 386–393, 396–398, 400, 403–404, 410–414
edtf
   __init__.py40100% 
   appsettings.py28292%12–13
   convert.py631182%11–19, 21, 73
   fields.py1191190%1, 3–8, 10–13, 15, 23, 29, 31, 33–35, 38–39, 51–58, 60, 63, 65–70, 72–76, 78–79, 81, 83–84, 86, 88–89, 91, 93–95, 97–98, 100, 102–105, 107, 109–112, 114, 123–125, 128, 131–132, 135–136, 139–140, 142–144, 147, 151, 153, 155, 157, 160–173, 179, 181–182, 184–185, 190–191, 193–194, 196, 204, 206, 208–209, 212–213, 223–226, 234
   jdutil.py984455%37, 55, 91–92, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py710100% 
edtf/natlang
   __init__.py20100% 
   en.py1471192%55, 58, 118, 164–165, 176–177, 203–204, 208, 275
   tests.py10190%211
edtf/parser
   __init__.py40100% 
   edtf_exceptions.py15286%24, 29
   grammar.py128298%357, 359
   parser_classes.py6339884%110–112, 119, 122, 183, 189–193, 200–202, 209–213, 222–224, 229–235, 246, 337–338, 371–375, 378, 393, 396–400, 403–407, 427–429, 545, 581, 589, 593, 640–641, 647, 665–666, 669, 675, 682, 684, 688, 695, 760, 766, 770, 784, 788, 882, 900–901, 903, 908, 914, 919, 924, 960, 963, 969, 974, 976–984, 999, 1004, 1081, 1085, 1118
   tests.py89198%400
TOTAL2822104063% 

Tests Skipped Failures Errors Time
279 0 💤 0 ❌ 0 🔥 4.141s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/edtf
   __init__.py40100% 
   appsettings.py28485%10–13
   convert.py634430%11–19, 21, 38–39, 52, 61, 72–73, 75, 104, 107–109, 113, 117, 136–156
   fields.py1192281%70, 84, 89, 91, 94–95, 97–98, 100, 105, 109–112, 135–136, 157, 167–168, 172–173, 181
   jdutil.py986632%37, 55, 91–92, 105, 152, 154–155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 251–252, 254–255, 257–258, 260, 262, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py71710%3–4, 6, 9–13, 16–21, 24–25, 28–29, 32–37, 40–44, 52–53, 56–62, 65–71, 74–79, 82–85, 88–91, 94–97, 100–107
/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/edtf/natlang
   __init__.py20100% 
   en.py1477151%33, 43–44, 46–49, 54–55, 58–61, 63, 67–70, 72–73, 75–77, 85–87, 89–93, 103, 105, 118, 125, 156–158, 160–165, 168–170, 172–177, 201–204, 208, 223, 225–226, 228, 245, 247, 255, 257, 259, 261, 266, 269, 275
   tests.py10100%3, 5, 10, 179, 184–185, 190–191, 207, 211
/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/site-packages/edtf/parser
   __init__.py40100% 
   edtf_exceptions.py151126%13–19, 22–24, 29
   grammar.py1281191%148–151, 350, 355–360
   parser_classes.py63335044%69, 71, 78–81, 83–84, 86–87, 110–112, 116, 119, 122, 181, 183, 190, 192, 198–202, 207–213, 220–224, 229–235, 246, 257, 286, 290, 302–304, 309, 317–319, 322, 337–338, 342, 371–375, 378, 383–384, 387, 390, 393, 396–400, 403–407, 427–429, 453, 457, 462, 464, 483, 490, 506, 515–517, 519–521, 524–525, 527, 530–533, 535, 537–539, 541, 545, 558, 565–568, 571, 574–577, 580–583, 585–589, 592–593, 596, 600, 606–607, 610, 613–614, 617, 621–622, 625–626, 629, 635, 640–641, 647, 649, 652–654, 660, 665–666, 669, 675, 677, 681–695, 700–702, 706, 708, 711–713, 717, 719, 722–724, 730–733, 738–739, 744–745, 747, 750, 753–755, 757, 760, 763–766, 768–774, 781–784, 786–792, 801–802, 805, 808, 811–813, 815, 823, 842–844, 846–849, 851–852, 854–855, 857, 859, 868, 871, 874, 881–882, 884–885, 887, 889, 891–892, 894, 896–901, 903, 905, 907–908, 910, 913–915, 918–920, 923–925, 933, 935–936, 939–940, 943–944, 947–948, 950–951, 955, 959–960, 963, 968–969, 973–974, 976–984, 986, 996–997, 999, 1001–1002, 1004, 1007, 1012, 1017, 1023–1024, 1027, 1030, 1033, 1035–1037, 1039, 1044–1045, 1047, 1056–1057, 1060, 1063, 1066–1067, 1069, 1078–1079, 1081–1083, 1085–1088, 1100–1102, 1107, 1110–1111, 1113, 1118
   tests.py89890%3–4, 6, 8–10, 26, 229, 243, 262, 284, 286–289, 291–293, 295–299, 302–303, 305–306, 309–311, 314–315, 318–321, 324, 327–331, 334, 337, 340, 343–348, 351, 354, 357, 362–363, 365–366, 369–370, 372–374, 377, 379–384, 386–393, 396–398, 400, 403–404, 410–414
edtf
   __init__.py40100% 
   appsettings.py28292%12–13
   convert.py631182%11–19, 21, 73
   fields.py1191190%1, 3–8, 10–13, 15, 23, 29, 31, 33–35, 38–39, 51–58, 60, 63, 65–70, 72–76, 78–79, 81, 83–84, 86, 88–89, 91, 93–95, 97–98, 100, 102–105, 107, 109–112, 114, 123–125, 128, 131–132, 135–136, 139–140, 142–144, 147, 151, 153, 155, 157, 160–173, 179, 181–182, 184–185, 190–191, 193–194, 196, 204, 206, 208–209, 212–213, 223–226, 234
   jdutil.py984455%37, 55, 91–92, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py710100% 
edtf/natlang
   __init__.py20100% 
   en.py1471192%55, 58, 118, 164–165, 176–177, 203–204, 208, 275
   tests.py10190%211
edtf/parser
   __init__.py40100% 
   edtf_exceptions.py15286%24, 29
   grammar.py128298%357, 359
   parser_classes.py6339884%110–112, 119, 122, 183, 189–193, 200–202, 209–213, 222–224, 229–235, 246, 337–338, 371–375, 378, 393, 396–400, 403–407, 427–429, 545, 581, 589, 593, 640–641, 647, 665–666, 669, 675, 682, 684, 688, 695, 760, 766, 770, 784, 788, 882, 900–901, 903, 908, 914, 919, 924, 960, 963, 969, 974, 976–984, 999, 1004, 1081, 1085, 1118
   tests.py89198%400
TOTAL2822104063% 

Tests Skipped Failures Errors Time
279 0 💤 0 ❌ 0 🔥 6.592s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/edtf
   __init__.py40100% 
   appsettings.py28485%10–13
   convert.py634430%11–19, 21, 38–39, 52, 61, 72–73, 75, 104, 107–109, 113, 117, 136–156
   fields.py1192281%70, 84, 89, 91, 94–95, 97–98, 100, 105, 109–112, 135–136, 157, 167–168, 172–173, 181
   jdutil.py986632%37, 55, 91–92, 105, 152, 154–155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 251–252, 254–255, 257–258, 260, 262, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py71710%3–4, 6, 9–13, 16–21, 24–25, 28–29, 32–37, 40–44, 52–53, 56–62, 65–71, 74–79, 82–85, 88–91, 94–97, 100–107
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/edtf/natlang
   __init__.py20100% 
   en.py1477151%33, 43–44, 46–49, 54–55, 58–61, 63, 67–70, 72–73, 75–77, 85–87, 89–93, 103, 105, 118, 125, 156–158, 160–165, 168–170, 172–177, 201–204, 208, 223, 225–226, 228, 245, 247, 255, 257, 259, 261, 266, 269, 275
   tests.py10100%3, 5, 10, 179, 184–185, 190–191, 207, 211
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/edtf/parser
   __init__.py40100% 
   edtf_exceptions.py151126%13–19, 22–24, 29
   grammar.py1281191%148–151, 350, 355–360
   parser_classes.py63335044%69, 71, 78–81, 83–84, 86–87, 110–112, 116, 119, 122, 181, 183, 190, 192, 198–202, 207–213, 220–224, 229–235, 246, 257, 286, 290, 302–304, 309, 317–319, 322, 337–338, 342, 371–375, 378, 383–384, 387, 390, 393, 396–400, 403–407, 427–429, 453, 457, 462, 464, 483, 490, 506, 515–517, 519–521, 524–525, 527, 530–533, 535, 537–539, 541, 545, 558, 565–568, 571, 574–577, 580–583, 585–589, 592–593, 596, 600, 606–607, 610, 613–614, 617, 621–622, 625–626, 629, 635, 640–641, 647, 649, 652–654, 660, 665–666, 669, 675, 677, 681–695, 700–702, 706, 708, 711–713, 717, 719, 722–724, 730–733, 738–739, 744–745, 747, 750, 753–755, 757, 760, 763–766, 768–774, 781–784, 786–792, 801–802, 805, 808, 811–813, 815, 823, 842–844, 846–849, 851–852, 854–855, 857, 859, 868, 871, 874, 881–882, 884–885, 887, 889, 891–892, 894, 896–901, 903, 905, 907–908, 910, 913–915, 918–920, 923–925, 933, 935–936, 939–940, 943–944, 947–948, 950–951, 955, 959–960, 963, 968–969, 973–974, 976–984, 986, 996–997, 999, 1001–1002, 1004, 1007, 1012, 1017, 1023–1024, 1027, 1030, 1033, 1035–1037, 1039, 1044–1045, 1047, 1056–1057, 1060, 1063, 1066–1067, 1069, 1078–1079, 1081–1083, 1085–1088, 1100–1102, 1107, 1110–1111, 1113, 1118
   tests.py89890%3–4, 6, 8–10, 26, 229, 243, 262, 284, 286–289, 291–293, 295–299, 302–303, 305–306, 309–311, 314–315, 318–321, 324, 327–331, 334, 337, 340, 343–348, 351, 354, 357, 362–363, 365–366, 369–370, 372–374, 377, 379–384, 386–393, 396–398, 400, 403–404, 410–414
edtf
   __init__.py40100% 
   appsettings.py28292%12–13
   convert.py631182%11–19, 21, 73
   fields.py1191190%1, 3–8, 10–13, 15, 23, 29, 31, 33–35, 38–39, 51–58, 60, 63, 65–70, 72–76, 78–79, 81, 83–84, 86, 88–89, 91, 93–95, 97–98, 100, 102–105, 107, 109–112, 114, 123–125, 128, 131–132, 135–136, 139–140, 142–144, 147, 151, 153, 155, 157, 160–173, 179, 181–182, 184–185, 190–191, 193–194, 196, 204, 206, 208–209, 212–213, 223–226, 234
   jdutil.py984455%37, 55, 91–92, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py710100% 
edtf/natlang
   __init__.py20100% 
   en.py1471192%55, 58, 118, 164–165, 176–177, 203–204, 208, 275
   tests.py10190%211
edtf/parser
   __init__.py40100% 
   edtf_exceptions.py15286%24, 29
   grammar.py128298%357, 359
   parser_classes.py6339884%110–112, 119, 122, 183, 189–193, 200–202, 209–213, 222–224, 229–235, 246, 337–338, 371–375, 378, 393, 396–400, 403–407, 427–429, 545, 581, 589, 593, 640–641, 647, 665–666, 669, 675, 682, 684, 688, 695, 760, 766, 770, 784, 788, 882, 900–901, 903, 908, 914, 919, 924, 960, 963, 969, 974, 976–984, 999, 1004, 1081, 1085, 1118
   tests.py89198%400
TOTAL2822104063% 

Tests Skipped Failures Errors Time
279 0 💤 0 ❌ 0 🔥 4.379s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/edtf
   __init__.py40100% 
   appsettings.py28485%10–13
   convert.py634430%11–19, 21, 38–39, 52, 61, 72–73, 75, 104, 107–109, 113, 117, 136–156
   fields.py1192281%70, 84, 89, 91, 94–95, 97–98, 100, 105, 109–112, 135–136, 157, 167–168, 172–173, 181
   jdutil.py986632%37, 55, 91–92, 105, 152, 154–155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 251–252, 254–255, 257–258, 260, 262, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py71710%3–4, 6, 9–13, 16–21, 24–25, 28–29, 32–37, 40–44, 52–53, 56–62, 65–71, 74–79, 82–85, 88–91, 94–97, 100–107
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/edtf/natlang
   __init__.py20100% 
   en.py1477151%33, 43–44, 46–49, 54–55, 58–61, 63, 67–70, 72–73, 75–77, 85–87, 89–93, 103, 105, 118, 125, 156–158, 160–165, 168–170, 172–177, 201–204, 208, 223, 225–226, 228, 245, 247, 255, 257, 259, 261, 266, 269, 275
   tests.py10100%3, 5, 10, 179, 184–185, 190–191, 207, 211
/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/edtf/parser
   __init__.py40100% 
   edtf_exceptions.py151126%13–19, 22–24, 29
   grammar.py1281191%148–151, 350, 355–360
   parser_classes.py63335044%69, 71, 78–81, 83–84, 86–87, 110–112, 116, 119, 122, 181, 183, 190, 192, 198–202, 207–213, 220–224, 229–235, 246, 257, 286, 290, 302–304, 309, 317–319, 322, 337–338, 342, 371–375, 378, 383–384, 387, 390, 393, 396–400, 403–407, 427–429, 453, 457, 462, 464, 483, 490, 506, 515–517, 519–521, 524–525, 527, 530–533, 535, 537–539, 541, 545, 558, 565–568, 571, 574–577, 580–583, 585–589, 592–593, 596, 600, 606–607, 610, 613–614, 617, 621–622, 625–626, 629, 635, 640–641, 647, 649, 652–654, 660, 665–666, 669, 675, 677, 681–695, 700–702, 706, 708, 711–713, 717, 719, 722–724, 730–733, 738–739, 744–745, 747, 750, 753–755, 757, 760, 763–766, 768–774, 781–784, 786–792, 801–802, 805, 808, 811–813, 815, 823, 842–844, 846–849, 851–852, 854–855, 857, 859, 868, 871, 874, 881–882, 884–885, 887, 889, 891–892, 894, 896–901, 903, 905, 907–908, 910, 913–915, 918–920, 923–925, 933, 935–936, 939–940, 943–944, 947–948, 950–951, 955, 959–960, 963, 968–969, 973–974, 976–984, 986, 996–997, 999, 1001–1002, 1004, 1007, 1012, 1017, 1023–1024, 1027, 1030, 1033, 1035–1037, 1039, 1044–1045, 1047, 1056–1057, 1060, 1063, 1066–1067, 1069, 1078–1079, 1081–1083, 1085–1088, 1100–1102, 1107, 1110–1111, 1113, 1118
   tests.py89890%3–4, 6, 8–10, 26, 229, 243, 262, 284, 286–289, 291–293, 295–299, 302–303, 305–306, 309–311, 314–315, 318–321, 324, 327–331, 334, 337, 340, 343–348, 351, 354, 357, 362–363, 365–366, 369–370, 372–374, 377, 379–384, 386–393, 396–398, 400, 403–404, 410–414
edtf
   __init__.py40100% 
   appsettings.py28292%12–13
   convert.py631182%11–19, 21, 73
   fields.py1191190%1, 3–8, 10–13, 15, 23, 29, 31, 33–35, 38–39, 51–58, 60, 63, 65–70, 72–76, 78–79, 81, 83–84, 86, 88–89, 91, 93–95, 97–98, 100, 102–105, 107, 109–112, 114, 123–125, 128, 131–132, 135–136, 139–140, 142–144, 147, 151, 153, 155, 157, 160–173, 179, 181–182, 184–185, 190–191, 193–194, 196, 204, 206, 208–209, 212–213, 223–226, 234
   jdutil.py984455%37, 55, 91–92, 287, 291, 314, 316–317, 319, 321, 346, 348, 350, 370–372, 374, 376, 378, 381–383, 385, 387, 389, 392–393, 395, 397, 399–400, 402, 405–407, 410–413, 415, 417, 424, 431
   tests.py710100% 
edtf/natlang
   __init__.py20100% 
   en.py1471192%55, 58, 118, 164–165, 176–177, 203–204, 208, 275
   tests.py10190%211
edtf/parser
   __init__.py40100% 
   edtf_exceptions.py15286%24, 29
   grammar.py128298%357, 359
   parser_classes.py6339884%110–112, 119, 122, 183, 189–193, 200–202, 209–213, 222–224, 229–235, 246, 337–338, 371–375, 378, 393, 396–400, 403–407, 427–429, 545, 581, 589, 593, 640–641, 647, 665–666, 669, 675, 682, 684, 688, 695, 760, 766, 770, 784, 788, 882, 900–901, 903, 908, 914, 919, 924, 960, 963, 969, 974, 976–984, 999, 1004, 1081, 1085, 1118
   tests.py89198%400
TOTAL2822104063% 

Tests Skipped Failures Errors Time
279 0 💤 0 ❌ 0 🔥 4.229s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1a5ebd5 Previous: 2dee3d0 Ratio
edtf/natlang/tests.py::test_benchmark_natlang[23rd Dynasty-None] 112811.03411818304 iter/sec (stddev: 9.275864956743497e-7) 87452.58232196192 iter/sec (stddev: 0.0000010017937828481525) 0.78
edtf/natlang/tests.py::test_benchmark_natlang[January 2008-2008-01] 11355.549426356833 iter/sec (stddev: 0.000005106118763103516) 9000.564801071861 iter/sec (stddev: 0.000006010095632531126) 0.79
edtf/natlang/tests.py::test_benchmark_natlang[ca1860-1860~] 14116.156428846341 iter/sec (stddev: 0.000003765977606812346) 11421.070724300595 iter/sec (stddev: 0.0000053575053327819285) 0.81
edtf/natlang/tests.py::test_benchmark_natlang[uncertain: approx 1862-1862%] 9411.110492419097 iter/sec (stddev: 0.000005449928619654072) 7617.574079629614 iter/sec (stddev: 0.000006512203622423784) 0.81
edtf/natlang/tests.py::test_benchmark_natlang[January-XXXX-01] 16486.42063986243 iter/sec (stddev: 0.0000033636089067727056) 13450.390524251667 iter/sec (stddev: 0.000004012463954728853) 0.82
edtf/natlang/tests.py::test_benchmark_natlang[Winter 1872-1872-24] 11800.635448495652 iter/sec (stddev: 0.000004304160873142662) 9725.128689759274 iter/sec (stddev: 0.00000487573544905178) 0.82
edtf/natlang/tests.py::test_benchmark_natlang[before approx January 18 1928-/1928-01-18~] 7548.414526974004 iter/sec (stddev: 0.000008871862066705117) 6132.244368658068 iter/sec (stddev: 0.000007248337023361963) 0.81
edtf/natlang/tests.py::test_benchmark_natlang[birthday in 1872-1872] 10242.413266244239 iter/sec (stddev: 0.000004510407260325474) 8253.446612577394 iter/sec (stddev: 0.000005400751865785569) 0.81
edtf/natlang/tests.py::test_benchmark_natlang[1270 CE-1270] 67036.1745424179 iter/sec (stddev: 9.442669862363423e-7) 52108.36077124198 iter/sec (stddev: 0.000001256723036882421) 0.78
edtf/natlang/tests.py::test_benchmark_natlang[2nd century bce--01XX] 56180.66409375717 iter/sec (stddev: 9.784495098991023e-7) 46122.20846177678 iter/sec (stddev: 0.0000013312995545775909) 0.82
edtf/natlang/tests.py::test_benchmark_natlang[1858/1860-[1858, 1860]] 32623.922606956727 iter/sec (stddev: 0.0000019531779660922666) 25726.77800101474 iter/sec (stddev: 0.0000027822666310790928) 0.79
edtf/parser/tests.py::test_benchmark_parser[2001-02-03] 140.28688622560531 iter/sec (stddev: 0.0005268901999697093) 164.36025747232304 iter/sec (stddev: 0.00044351801211646577) 1.17
edtf/parser/tests.py::test_benchmark_parser[2008-12] 139.5240128924144 iter/sec (stddev: 0.0025758309844066463) 171.396905918966 iter/sec (stddev: 0.0020301471202044128) 1.23
edtf/parser/tests.py::test_benchmark_parser[2008] 181.2076226970974 iter/sec (stddev: 0.0016155359945620176) 212.74006997633114 iter/sec (stddev: 0.0012729478913041416) 1.17
edtf/parser/tests.py::test_benchmark_parser[-0999] 179.86828237460222 iter/sec (stddev: 0.0020884449380360807) 203.4671278436412 iter/sec (stddev: 0.001962674730831981) 1.13
edtf/parser/tests.py::test_benchmark_parser[2004-01-01T10:10:10+05:00] 115.59574831755106 iter/sec (stddev: 0.002867842754709324) 147.80134237866704 iter/sec (stddev: 0.0019370240016293805) 1.28
edtf/parser/tests.py::test_benchmark_parser[-2005/-1999-02] 99.11420729253827 iter/sec (stddev: 0.001940331975996393) 126.21309329830696 iter/sec (stddev: 0.0017674834278808428) 1.27
edtf/parser/tests.py::test_benchmark_parser[/2006] 233.34698993180888 iter/sec (stddev: 0.00017482841098739947) 339.06934347121705 iter/sec (stddev: 0.0001246287162138271) 1.45
edtf/parser/tests.py::test_benchmark_parser[?2004-%06] 191.40431182711347 iter/sec (stddev: 0.0003581216666310099) 225.62847187799065 iter/sec (stddev: 0.001289219949048993) 1.18
edtf/parser/tests.py::test_benchmark_parser[[1667, 1760-12]] 18.873142286804637 iter/sec (stddev: 0.0057141649059553315) 32.68742739082325 iter/sec (stddev: 0.0031668343996002894) 1.73
edtf/parser/tests.py::test_benchmark_parser[Y3388E2S3] 390.72541163526733 iter/sec (stddev: 0.0004214941565686158) 457.22714081187996 iter/sec (stddev: 0.00009194560268454482) 1.17
edtf/parser/tests.py::test_benchmark_parser[2001-29] 104.99704656434544 iter/sec (stddev: 0.002391689871209128) 122.32911922405219 iter/sec (stddev: 0.002515705207096128) 1.17

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1a5ebd5 Previous: 2dee3d0 Ratio
edtf/natlang/tests.py::test_benchmark_natlang[23rd Dynasty-None] 81427.15391885779 iter/sec (stddev: 8.640298334365052e-7) 87452.58232196192 iter/sec (stddev: 0.0000010017937828481525) 1.07
edtf/natlang/tests.py::test_benchmark_natlang[January 2008-2008-01] 8691.157896792578 iter/sec (stddev: 0.000005478426386009603) 9000.564801071861 iter/sec (stddev: 0.000006010095632531126) 1.04
edtf/natlang/tests.py::test_benchmark_natlang[ca1860-1860~] 10655.77559070492 iter/sec (stddev: 0.000021369732458881912) 11421.070724300595 iter/sec (stddev: 0.0000053575053327819285) 1.07
edtf/natlang/tests.py::test_benchmark_natlang[uncertain: approx 1862-1862%] 7198.612656708192 iter/sec (stddev: 0.0000065998337595824055) 7617.574079629614 iter/sec (stddev: 0.000006512203622423784) 1.06
edtf/natlang/tests.py::test_benchmark_natlang[January-XXXX-01] 12611.84757220807 iter/sec (stddev: 0.000018870258302156774) 13450.390524251667 iter/sec (stddev: 0.000004012463954728853) 1.07
edtf/natlang/tests.py::test_benchmark_natlang[Winter 1872-1872-24] 8241.982800262032 iter/sec (stddev: 0.00004800156115449359) 9725.128689759274 iter/sec (stddev: 0.00000487573544905178) 1.18
edtf/natlang/tests.py::test_benchmark_natlang[before approx January 18 1928-/1928-01-18~] 5778.924489444637 iter/sec (stddev: 0.000007724543792920081) 6132.244368658068 iter/sec (stddev: 0.000007248337023361963) 1.06
edtf/natlang/tests.py::test_benchmark_natlang[birthday in 1872-1872] 7590.989677348822 iter/sec (stddev: 0.00002430491086340938) 8253.446612577394 iter/sec (stddev: 0.000005400751865785569) 1.09
edtf/natlang/tests.py::test_benchmark_natlang[1270 CE-1270] 49015.30385624514 iter/sec (stddev: 0.0000013361939357901559) 52108.36077124198 iter/sec (stddev: 0.000001256723036882421) 1.06
edtf/natlang/tests.py::test_benchmark_natlang[2nd century bce--01XX] 42972.3735818626 iter/sec (stddev: 0.000001351105932263046) 46122.20846177678 iter/sec (stddev: 0.0000013312995545775909) 1.07
edtf/natlang/tests.py::test_benchmark_natlang[1858/1860-[1858, 1860]] 24334.724914445134 iter/sec (stddev: 0.000006550948658923732) 25726.77800101474 iter/sec (stddev: 0.0000027822666310790928) 1.06
edtf/parser/tests.py::test_benchmark_parser[2001-02-03] 156.39193851325305 iter/sec (stddev: 0.0004589897455951374) 164.36025747232304 iter/sec (stddev: 0.00044351801211646577) 1.05
edtf/parser/tests.py::test_benchmark_parser[2008-12] 162.40269887842683 iter/sec (stddev: 0.0018613388828573484) 171.396905918966 iter/sec (stddev: 0.0020301471202044128) 1.06
edtf/parser/tests.py::test_benchmark_parser[2008] 196.26501147537687 iter/sec (stddev: 0.0018045146160654934) 212.74006997633114 iter/sec (stddev: 0.0012729478913041416) 1.08
edtf/parser/tests.py::test_benchmark_parser[-0999] 192.84462257119668 iter/sec (stddev: 0.0016630100163580312) 203.4671278436412 iter/sec (stddev: 0.001962674730831981) 1.06
edtf/parser/tests.py::test_benchmark_parser[2004-01-01T10:10:10+05:00] 139.91556688125135 iter/sec (stddev: 0.0015037059263833842) 147.80134237866704 iter/sec (stddev: 0.0019370240016293805) 1.06
edtf/parser/tests.py::test_benchmark_parser[-2005/-1999-02] 119.39111083887532 iter/sec (stddev: 0.0001901209983381047) 126.21309329830696 iter/sec (stddev: 0.0017674834278808428) 1.06
edtf/parser/tests.py::test_benchmark_parser[/2006] 312.7529031932833 iter/sec (stddev: 0.0008824901621584567) 339.06934347121705 iter/sec (stddev: 0.0001246287162138271) 1.08
edtf/parser/tests.py::test_benchmark_parser[?2004-%06] 214.8440129118703 iter/sec (stddev: 0.0009715350007732799) 225.62847187799065 iter/sec (stddev: 0.001289219949048993) 1.05
edtf/parser/tests.py::test_benchmark_parser[[1667, 1760-12]] 31.329813384938223 iter/sec (stddev: 0.0004239764553479364) 32.68742739082325 iter/sec (stddev: 0.0031668343996002894) 1.04
edtf/parser/tests.py::test_benchmark_parser[Y3388E2S3] 430.1617924894616 iter/sec (stddev: 0.000061376895585389) 457.22714081187996 iter/sec (stddev: 0.00009194560268454482) 1.06
edtf/parser/tests.py::test_benchmark_parser[2001-29] 115.2597941929844 iter/sec (stddev: 0.0021508233300822706) 122.32911922405219 iter/sec (stddev: 0.002515705207096128) 1.06

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1a5ebd5 Previous: 2dee3d0 Ratio
edtf/natlang/tests.py::test_benchmark_natlang[23rd Dynasty-None] 71622.59576350034 iter/sec (stddev: 0.000001448928901473278) 87452.58232196192 iter/sec (stddev: 0.0000010017937828481525) 1.22
edtf/natlang/tests.py::test_benchmark_natlang[January 2008-2008-01] 8191.645870127036 iter/sec (stddev: 0.0000063039300419479585) 9000.564801071861 iter/sec (stddev: 0.000006010095632531126) 1.10
edtf/natlang/tests.py::test_benchmark_natlang[ca1860-1860~] 9804.772717687423 iter/sec (stddev: 0.0000066734380125992645) 11421.070724300595 iter/sec (stddev: 0.0000053575053327819285) 1.16
edtf/natlang/tests.py::test_benchmark_natlang[uncertain: approx 1862-1862%] 6686.0571676639065 iter/sec (stddev: 0.000009110212621790196) 7617.574079629614 iter/sec (stddev: 0.000006512203622423784) 1.14
edtf/natlang/tests.py::test_benchmark_natlang[January-XXXX-01] 11500.741257294458 iter/sec (stddev: 0.000007027522367890349) 13450.390524251667 iter/sec (stddev: 0.000004012463954728853) 1.17
edtf/natlang/tests.py::test_benchmark_natlang[Winter 1872-1872-24] 8382.022810307037 iter/sec (stddev: 0.000006266384032308951) 9725.128689759274 iter/sec (stddev: 0.00000487573544905178) 1.16
edtf/natlang/tests.py::test_benchmark_natlang[before approx January 18 1928-/1928-01-18~] 5601.982517485121 iter/sec (stddev: 0.0000077568050002648) 6132.244368658068 iter/sec (stddev: 0.000007248337023361963) 1.09
edtf/natlang/tests.py::test_benchmark_natlang[birthday in 1872-1872] 7247.045798970572 iter/sec (stddev: 0.000007331022258849275) 8253.446612577394 iter/sec (stddev: 0.000005400751865785569) 1.14
edtf/natlang/tests.py::test_benchmark_natlang[1270 CE-1270] 49034.30727509658 iter/sec (stddev: 0.0000012561652137177862) 52108.36077124198 iter/sec (stddev: 0.000001256723036882421) 1.06
edtf/natlang/tests.py::test_benchmark_natlang[2nd century bce--01XX] 44337.28862735993 iter/sec (stddev: 0.000002319968332893665) 46122.20846177678 iter/sec (stddev: 0.0000013312995545775909) 1.04
edtf/natlang/tests.py::test_benchmark_natlang[1858/1860-[1858, 1860]] 22247.747012023097 iter/sec (stddev: 0.0000029104332669573894) 25726.77800101474 iter/sec (stddev: 0.0000027822666310790928) 1.16
edtf/parser/tests.py::test_benchmark_parser[2001-02-03] 119.0785396962513 iter/sec (stddev: 0.0006266162229282464) 164.36025747232304 iter/sec (stddev: 0.00044351801211646577) 1.38
edtf/parser/tests.py::test_benchmark_parser[2008-12] 123.80936350993763 iter/sec (stddev: 0.002366355150096491) 171.396905918966 iter/sec (stddev: 0.0020301471202044128) 1.38
edtf/parser/tests.py::test_benchmark_parser[2008] 154.8163659171419 iter/sec (stddev: 0.001905096088151841) 212.74006997633114 iter/sec (stddev: 0.0012729478913041416) 1.37
edtf/parser/tests.py::test_benchmark_parser[-0999] 157.09300586956041 iter/sec (stddev: 0.00191266728514001) 203.4671278436412 iter/sec (stddev: 0.001962674730831981) 1.30
edtf/parser/tests.py::test_benchmark_parser[2004-01-01T10:10:10+05:00] 105.13402264424634 iter/sec (stddev: 0.0022220950344769754) 147.80134237866704 iter/sec (stddev: 0.0019370240016293805) 1.41
edtf/parser/tests.py::test_benchmark_parser[-2005/-1999-02] 85.38186177556514 iter/sec (stddev: 0.0022778809511387094) 126.21309329830696 iter/sec (stddev: 0.0017674834278808428) 1.48
edtf/parser/tests.py::test_benchmark_parser[/2006] 197.37248425837402 iter/sec (stddev: 0.00021839353124071656) 339.06934347121705 iter/sec (stddev: 0.0001246287162138271) 1.72
edtf/parser/tests.py::test_benchmark_parser[?2004-%06] 158.10076970859288 iter/sec (stddev: 0.0018319692284663185) 225.62847187799065 iter/sec (stddev: 0.001289219949048993) 1.43
edtf/parser/tests.py::test_benchmark_parser[[1667, 1760-12]] 16.751353185041282 iter/sec (stddev: 0.0008606532233305901) 32.68742739082325 iter/sec (stddev: 0.0031668343996002894) 1.95
edtf/parser/tests.py::test_benchmark_parser[Y3388E2S3] 323.01530504566756 iter/sec (stddev: 0.0002494433523705213) 457.22714081187996 iter/sec (stddev: 0.00009194560268454482) 1.42
edtf/parser/tests.py::test_benchmark_parser[2001-29] 87.73165790692619 iter/sec (stddev: 0.003486228179475839) 122.32911922405219 iter/sec (stddev: 0.002515705207096128) 1.39

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1a5ebd5 Previous: 2dee3d0 Ratio
edtf/natlang/tests.py::test_benchmark_natlang[23rd Dynasty-None] 87458.39496658265 iter/sec (stddev: 0.0000012415740475063087) 87452.58232196192 iter/sec (stddev: 0.0000010017937828481525) 1.00
edtf/natlang/tests.py::test_benchmark_natlang[January 2008-2008-01] 8988.510250504713 iter/sec (stddev: 0.000006366160873528963) 9000.564801071861 iter/sec (stddev: 0.000006010095632531126) 1.00
edtf/natlang/tests.py::test_benchmark_natlang[ca1860-1860~] 11282.978771672844 iter/sec (stddev: 0.000004737764118413817) 11421.070724300595 iter/sec (stddev: 0.0000053575053327819285) 1.01
edtf/natlang/tests.py::test_benchmark_natlang[uncertain: approx 1862-1862%] 7595.587518684876 iter/sec (stddev: 0.000005287027225794531) 7617.574079629614 iter/sec (stddev: 0.000006512203622423784) 1.00
edtf/natlang/tests.py::test_benchmark_natlang[January-XXXX-01] 13202.093532347233 iter/sec (stddev: 0.000004481398735175423) 13450.390524251667 iter/sec (stddev: 0.000004012463954728853) 1.02
edtf/natlang/tests.py::test_benchmark_natlang[Winter 1872-1872-24] 9525.555497701978 iter/sec (stddev: 0.000004609985484525579) 9725.128689759274 iter/sec (stddev: 0.00000487573544905178) 1.02
edtf/natlang/tests.py::test_benchmark_natlang[before approx January 18 1928-/1928-01-18~] 6079.428522969423 iter/sec (stddev: 0.00000706430868736157) 6132.244368658068 iter/sec (stddev: 0.000007248337023361963) 1.01
edtf/natlang/tests.py::test_benchmark_natlang[birthday in 1872-1872] 8239.73235396889 iter/sec (stddev: 0.000009584210009235356) 8253.446612577394 iter/sec (stddev: 0.000005400751865785569) 1.00
edtf/natlang/tests.py::test_benchmark_natlang[1270 CE-1270] 53659.45410263254 iter/sec (stddev: 0.0000012674195098305426) 52108.36077124198 iter/sec (stddev: 0.000001256723036882421) 0.97
edtf/natlang/tests.py::test_benchmark_natlang[2nd century bce--01XX] 46642.79826636507 iter/sec (stddev: 0.000001329281991503826) 46122.20846177678 iter/sec (stddev: 0.0000013312995545775909) 0.99
edtf/natlang/tests.py::test_benchmark_natlang[1858/1860-[1858, 1860]] 25425.101642548005 iter/sec (stddev: 0.0000027768776639983465) 25726.77800101474 iter/sec (stddev: 0.0000027822666310790928) 1.01
edtf/parser/tests.py::test_benchmark_parser[2001-02-03] 167.75409976660612 iter/sec (stddev: 0.0003330414251430302) 164.36025747232304 iter/sec (stddev: 0.00044351801211646577) 0.98
edtf/parser/tests.py::test_benchmark_parser[2008-12] 169.9610030852051 iter/sec (stddev: 0.0018806522044760817) 171.396905918966 iter/sec (stddev: 0.0020301471202044128) 1.01
edtf/parser/tests.py::test_benchmark_parser[2008] 207.96724440833196 iter/sec (stddev: 0.0012108557074792929) 212.74006997633114 iter/sec (stddev: 0.0012729478913041416) 1.02
edtf/parser/tests.py::test_benchmark_parser[-0999] 193.87755668251856 iter/sec (stddev: 0.0023778216664974683) 203.4671278436412 iter/sec (stddev: 0.001962674730831981) 1.05
edtf/parser/tests.py::test_benchmark_parser[2004-01-01T10:10:10+05:00] 140.87403090773557 iter/sec (stddev: 0.002223046931716955) 147.80134237866704 iter/sec (stddev: 0.0019370240016293805) 1.05
edtf/parser/tests.py::test_benchmark_parser[-2005/-1999-02] 121.68311146538784 iter/sec (stddev: 0.0019101247642321275) 126.21309329830696 iter/sec (stddev: 0.0017674834278808428) 1.04
edtf/parser/tests.py::test_benchmark_parser[/2006] 333.3187886743156 iter/sec (stddev: 0.0001242649319248283) 339.06934347121705 iter/sec (stddev: 0.0001246287162138271) 1.02
edtf/parser/tests.py::test_benchmark_parser[?2004-%06] 224.87621054857362 iter/sec (stddev: 0.0011476142221226737) 225.62847187799065 iter/sec (stddev: 0.001289219949048993) 1.00
edtf/parser/tests.py::test_benchmark_parser[[1667, 1760-12]] 32.45158430500425 iter/sec (stddev: 0.00327835069063992) 32.68742739082325 iter/sec (stddev: 0.0031668343996002894) 1.01
edtf/parser/tests.py::test_benchmark_parser[Y3388E2S3] 458.61034367111574 iter/sec (stddev: 0.00007649984942691673) 457.22714081187996 iter/sec (stddev: 0.00009194560268454482) 1.00
edtf/parser/tests.py::test_benchmark_parser[2001-29] 123.00790910799216 iter/sec (stddev: 0.0016837223222256686) 122.32911922405219 iter/sec (stddev: 0.002515705207096128) 0.99

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1a5ebd5 Previous: 2dee3d0 Ratio
edtf/natlang/tests.py::test_benchmark_natlang[23rd Dynasty-None] 64239.65886211179 iter/sec (stddev: 0.000006197298547526469) 87452.58232196192 iter/sec (stddev: 0.0000010017937828481525) 1.36
edtf/natlang/tests.py::test_benchmark_natlang[January 2008-2008-01] 8406.046823979672 iter/sec (stddev: 0.000006455125779111218) 9000.564801071861 iter/sec (stddev: 0.000006010095632531126) 1.07
edtf/natlang/tests.py::test_benchmark_natlang[ca1860-1860~] 10460.381976717897 iter/sec (stddev: 0.0000049775373428888725) 11421.070724300595 iter/sec (stddev: 0.0000053575053327819285) 1.09
edtf/natlang/tests.py::test_benchmark_natlang[uncertain: approx 1862-1862%] 6916.264779609145 iter/sec (stddev: 0.000006055249927853878) 7617.574079629614 iter/sec (stddev: 0.000006512203622423784) 1.10
edtf/natlang/tests.py::test_benchmark_natlang[January-XXXX-01] 12362.80012250716 iter/sec (stddev: 0.0000039825382336203) 13450.390524251667 iter/sec (stddev: 0.000004012463954728853) 1.09
edtf/natlang/tests.py::test_benchmark_natlang[Winter 1872-1872-24] 8656.889042438352 iter/sec (stddev: 0.00000505200149862591) 9725.128689759274 iter/sec (stddev: 0.00000487573544905178) 1.12
edtf/natlang/tests.py::test_benchmark_natlang[before approx January 18 1928-/1928-01-18~] 5558.31049712049 iter/sec (stddev: 0.00000607121133904006) 6132.244368658068 iter/sec (stddev: 0.000007248337023361963) 1.10
edtf/natlang/tests.py::test_benchmark_natlang[birthday in 1872-1872] 7464.032200096747 iter/sec (stddev: 0.0000052586599490131566) 8253.446612577394 iter/sec (stddev: 0.000005400751865785569) 1.11
edtf/natlang/tests.py::test_benchmark_natlang[1270 CE-1270] 47350.61445662524 iter/sec (stddev: 0.0000011660818256600938) 52108.36077124198 iter/sec (stddev: 0.000001256723036882421) 1.10
edtf/natlang/tests.py::test_benchmark_natlang[2nd century bce--01XX] 43267.403753081366 iter/sec (stddev: 0.0000013640166062029898) 46122.20846177678 iter/sec (stddev: 0.0000013312995545775909) 1.07
edtf/natlang/tests.py::test_benchmark_natlang[1858/1860-[1858, 1860]] 23958.08430113854 iter/sec (stddev: 0.0000025236208404990744) 25726.77800101474 iter/sec (stddev: 0.0000027822666310790928) 1.07
edtf/parser/tests.py::test_benchmark_parser[2001-02-03] 161.4552565564275 iter/sec (stddev: 0.00039489567885119166) 164.36025747232304 iter/sec (stddev: 0.00044351801211646577) 1.02
edtf/parser/tests.py::test_benchmark_parser[2008-12] 168.46732906412691 iter/sec (stddev: 0.0015487752937814621) 171.396905918966 iter/sec (stddev: 0.0020301471202044128) 1.02
edtf/parser/tests.py::test_benchmark_parser[2008] 204.083749381197 iter/sec (stddev: 0.001362739404585082) 212.74006997633114 iter/sec (stddev: 0.0012729478913041416) 1.04
edtf/parser/tests.py::test_benchmark_parser[-0999] 205.12900033660105 iter/sec (stddev: 0.0012217987857951111) 203.4671278436412 iter/sec (stddev: 0.001962674730831981) 0.99
edtf/parser/tests.py::test_benchmark_parser[2004-01-01T10:10:10+05:00] 145.43600551667174 iter/sec (stddev: 0.001569801311005985) 147.80134237866704 iter/sec (stddev: 0.0019370240016293805) 1.02
edtf/parser/tests.py::test_benchmark_parser[-2005/-1999-02] 123.87258721204361 iter/sec (stddev: 0.0014182248134987844) 126.21309329830696 iter/sec (stddev: 0.0017674834278808428) 1.02
edtf/parser/tests.py::test_benchmark_parser[/2006] 327.6984659865364 iter/sec (stddev: 0.0007960169381328043) 339.06934347121705 iter/sec (stddev: 0.0001246287162138271) 1.03
edtf/parser/tests.py::test_benchmark_parser[?2004-%06] 221.99149251803337 iter/sec (stddev: 0.0009798676117060842) 225.62847187799065 iter/sec (stddev: 0.001289219949048993) 1.02
edtf/parser/tests.py::test_benchmark_parser[[1667, 1760-12]] 32.76460679037671 iter/sec (stddev: 0.00047656907185628057) 32.68742739082325 iter/sec (stddev: 0.0031668343996002894) 1.00
edtf/parser/tests.py::test_benchmark_parser[Y3388E2S3] 446.60362946337654 iter/sec (stddev: 0.0000634044096378402) 457.22714081187996 iter/sec (stddev: 0.00009194560268454482) 1.02
edtf/parser/tests.py::test_benchmark_parser[2001-29] 120.69481810135713 iter/sec (stddev: 0.0020335020757290437) 122.32911922405219 iter/sec (stddev: 0.002515705207096128) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.