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

mishankov / platforma / 19169631766

07 Nov 2025 01:19PM UTC coverage: 22.432% (-1.1%) from 23.524%
19169631766

Pull #22

github

mishankov
Add docs/dist placeholder file for embed

The docs/dist directory is required for Go embed functionality but may
not exist in fresh clones. Create the directory and a placeholder file
to prevent build failures.
Pull Request #22: Update docs

0 of 26 new or added lines in 4 files covered. (0.0%)

6 existing lines in 1 file now uncovered.

249 of 1110 relevant lines covered (22.43%)

0.25 hits per line

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

0.0
/httpserver/fileserver.go
1
package httpserver
2

3
import (
4
        "context"
5
        "io/fs"
6
        "net/http"
7
        "time"
8
)
9

10
// FileServer represents an HTTP file server for serving static files.
11
type FileServer struct {
12
        server *HTTPServer
13
}
14

15
// NewFileServer creates a new FileServer instance with the given file system, base path, and port.
NEW
16
func NewFileServer(fs fs.FS, basePath, port string) *FileServer {
×
NEW
17
        server := New(port, 1*time.Second)
×
NEW
18
        server.HandleGroup(basePath, http.FileServer(http.FS(fs)))
×
NEW
19

×
NEW
20
        return &FileServer{server: server}
×
NEW
21
}
×
22

NEW
23
func (s *FileServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
×
NEW
24
        s.server.ServeHTTP(w, r)
×
NEW
25
}
×
26

27
// Run starts the file server and listens for incoming requests.
NEW
28
func (s *FileServer) Run(ctx context.Context) error {
×
NEW
29
        return s.server.Run(ctx)
×
NEW
30
}
×
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