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

tempestphp / tempest-framework / 14024978163

23 Mar 2025 05:55PM UTC coverage: 79.391% (-0.05%) from 79.441%
14024978163

push

github

web-flow
feat(view): cache Blade and Twig templates in internal storage (#1061)

2 of 2 new or added lines in 2 files covered. (100.0%)

912 existing lines in 110 files now uncovered.

10478 of 13198 relevant lines covered (79.39%)

91.09 hits per line

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

0.0
/src/Tempest/Console/src/Testing/TestCursor.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Console\Testing;
6

7
use Tempest\Console\Cursor;
8
use Tempest\Console\Point;
9

10
final class TestCursor implements Cursor
11
{
12
    public function __construct(
×
13
        private int $x = 1,
14
        private int $y = 1,
15
    ) {
16
    }
×
17

18
    public function getPosition(): Point
×
19
    {
20
        return new Point($this->x, $this->y);
×
21
    }
22

23
    public function setPosition(Point $position): self
×
24
    {
25
        $this->x = $position->x;
×
26
        $this->y = $position->y;
×
27

28
        return $this;
×
29
    }
30

31
    public function moveUp(int $amount = 1): Cursor
×
32
    {
33
        $this->y = max(1, $this->y - 1);
×
34

35
        return $this;
×
36
    }
37

38
    public function moveDown(int $amount = 1): Cursor
×
39
    {
40
        $this->y += 1;
×
41

42
        return $this;
×
43
    }
44

45
    public function moveLeft(int $amount = 1): Cursor
×
46
    {
47
        $this->x = max(1, $this->x - 1);
×
48

49
        return $this;
×
50
    }
51

52
    public function moveRight(int $amount = 1): Cursor
×
53
    {
54
        $this->x += 1;
×
55

56
        return $this;
×
57
    }
58

59
    public function place(Point $position): Cursor
×
60
    {
61
        $this->x = max(1, $position->x);
×
62
        $this->y = max(1, $position->y);
×
63

64
        return $this;
×
65
    }
66

67
    public function placeToEnd(): Cursor
×
68
    {
69
        return $this;
×
70
    }
71

72
    public function clearLine(): Cursor
×
73
    {
74
        return $this;
×
75
    }
76

77
    public function clearAfter(): Cursor
×
78
    {
79
        return $this;
×
80
    }
81

82
    public function startOfLine(): Cursor
×
83
    {
84
        return $this;
×
85
    }
86

87
    public function hide(): Cursor
×
88
    {
89
        return $this;
×
90
    }
91

UNCOV
92
    public function show(): Cursor
×
93
    {
UNCOV
94
        return $this;
×
95
    }
96
}
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

© 2026 Coveralls, Inc