• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

famoser / elliptic / 16238255757

12 Jul 2025 01:00PM UTC coverage: 84.857% (-6.3%) from 91.134%
16238255757

Pull #12

github

web-flow
Merge 97611838a into 5ce1049c0
Pull Request #12: WIP: Add montgomery

270 of 376 new or added lines in 17 files covered. (71.81%)

2 existing lines in 1 file now uncovered.

947 of 1116 relevant lines covered (84.86%)

23.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Primitives/XPoint.php
1
<?php
2

3
namespace Famoser\Elliptic\Primitives;
4

5
/**
6
 * Elliptic curve point with x and y coordinates, but the y coordinate is implicit
7
 */
8
class XPoint
9
{
NEW
10
    public function __construct(public \GMP $x)
×
11
    {
NEW
12
    }
×
13

NEW
14
    public static function createInfinity(): XPoint
×
15
    {
NEW
16
        return new XPoint(gmp_init(0));
×
17
    }
18

NEW
19
    public function isInfinity(): bool
×
20
    {
NEW
21
        return gmp_cmp($this->x, 0) === 0;
×
22
    }
23

NEW
24
    public function equals(self $other): bool
×
25
    {
NEW
26
        return gmp_cmp($this->x, $other->x) === 0;
×
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc