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

playwright-community / playwright-go / 28128040725

24 Jun 2026 08:37PM UTC coverage: 78.514% (-1.8%) from 80.349%
28128040725

push

github

web-flow
Roll to Playwright v1.60.0 (#592)

280 of 561 new or added lines in 24 files covered. (49.91%)

18 existing lines in 3 files now uncovered.

7904 of 10067 relevant lines covered (78.51%)

4405.03 hits per line

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

24.49
/debugger.go
1
package playwright
2

3
import "sync"
4

5
type debuggerImpl struct {
6
        channelOwner
7
        mu            sync.RWMutex
8
        pausedDetails *PausedDetail
9
}
10

NEW
11
func (d *debuggerImpl) OnPausedStateChanged(fn func()) {
×
NEW
12
        d.On("pausedStateChanged", fn)
×
NEW
13
}
×
14

NEW
15
func (d *debuggerImpl) PausedDetails() (*PausedDetail, error) {
×
NEW
16
        d.mu.RLock()
×
NEW
17
        defer d.mu.RUnlock()
×
NEW
18
        return d.pausedDetails, nil
×
NEW
19
}
×
20

NEW
21
func (d *debuggerImpl) RequestPause() error {
×
NEW
22
        _, err := d.channel.Send("requestPause")
×
NEW
23
        return err
×
NEW
24
}
×
25

NEW
26
func (d *debuggerImpl) Resume() error {
×
NEW
27
        _, err := d.channel.Send("resume")
×
NEW
28
        return err
×
NEW
29
}
×
30

NEW
31
func (d *debuggerImpl) Next() error {
×
NEW
32
        _, err := d.channel.Send("next")
×
NEW
33
        return err
×
NEW
34
}
×
35

NEW
36
func (d *debuggerImpl) RunTo(location DebuggerLocation) error {
×
NEW
37
        _, err := d.channel.Send("runTo", map[string]any{"location": location})
×
NEW
38
        return err
×
NEW
39
}
×
40

41
func newDebugger(parent *channelOwner, objectType string, guid string, initializer map[string]any) *debuggerImpl {
3,531✔
42
        bt := &debuggerImpl{}
3,531✔
43
        bt.createChannelOwner(bt, parent, objectType, guid, initializer)
3,531✔
44
        bt.channel.On("pausedStateChanged", func(params map[string]any) {
7,062✔
45
                bt.mu.Lock()
3,531✔
46
                if pd, ok := params["pausedDetails"]; ok && pd != nil {
3,531✔
NEW
47
                        data := pd.(map[string]any)
×
NEW
48
                        detail := &PausedDetail{Title: data["title"].(string)}
×
NEW
49
                        if loc, ok := data["location"].(map[string]any); ok {
×
NEW
50
                                detail.Location = &PausedDetailLocation{File: loc["file"].(string)}
×
NEW
51
                                if line, ok := loc["line"]; ok && line != nil {
×
NEW
52
                                        v := int(line.(float64))
×
NEW
53
                                        detail.Location.Line = &v
×
NEW
54
                                }
×
NEW
55
                                if col, ok := loc["column"]; ok && col != nil {
×
NEW
56
                                        v := int(col.(float64))
×
NEW
57
                                        detail.Location.Column = &v
×
NEW
58
                                }
×
59
                        }
NEW
60
                        bt.pausedDetails = detail
×
61
                } else {
3,531✔
62
                        bt.pausedDetails = nil
3,531✔
63
                }
3,531✔
64
                bt.mu.Unlock()
3,531✔
65
                bt.Emit("pausedStateChanged")
3,531✔
66
        })
67
        return bt
3,531✔
68
}
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