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

forst-lang / forst / 24312080732
62%
main: 76%

Build:
Build:
LAST BUILD BRANCH: feat/full-request-sidecar
DEFAULT BRANCH: main
Ran 12 Apr 2026 05:19PM UTC
Jobs 1
Files 193
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Apr 2026 05:16PM UTC coverage: 62.275% (-0.2%) from 62.492%
24312080732

Pull #72

github

haveyaseen
feat(lsp): enrich hovers with Forst examples and printed type guards

Expand `internal/hoverdoc` with `forstBlock`-based fenced examples for
built-in types, guards, and many more keywords (control flow, interop,
`error`, booleans, `nil`). Add `IsBuiltinTypeSurfaceName` and tests.

LSP: document `nil`/`true`/`false` via keyword hovers; show built-in type
docs when an identifier is a built-in name without variable inference;
render type guard declarations with `printer.FormatTypeGuardNode` plus
leading comments (including merged package members).

Printer: add `FormatTypeGuardNode` for reuse from hovers; cover with a
round-trip test.

Example:

```forst
ensure s is Min(1)
// following statements see narrowed `String`
```
Pull Request #72: feat(lsp): add hover dictionaries for built-in types and guards

157 of 368 new or added lines in 5 files covered. (42.66%)

3 existing lines in 2 files now uncovered.

16635 of 26712 relevant lines covered (62.28%)

19.76 hits per line

Uncovered Changes

Lines Coverage ∆ File
198
34.0
forst/internal/hoverdoc/builtins.go
9
67.94
3.49% forst/cmd/forst/lsp/hover_completion.go
2
60.0
forst/internal/hoverdoc/docfmt.go
2
64.6
0.06% forst/internal/printer/printer.go

Coverage Regressions

Lines Coverage ∆ File
2
67.94
3.49% forst/cmd/forst/lsp/hover_completion.go
1
45.0
-0.71% forst/internal/typechecker/type_alias_display.go
Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/180150070 24312080732.1 12 Apr 2026 05:19PM UTC 193
62.28
GitHub Action Run
Source Files on build 24312080732
  • Tree
  • List 193
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #72
  • PR Base - main (#24311749291)
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