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

tensorchord / openmodelz / 6180409240

14 Sep 2023 03:02AM UTC coverage: 26.069% (-3.9%) from 29.927%
6180409240

push

github

web-flow
feat: Support BYOC (#171)

Signed-off-by: xieydd <xieydd@gmail.com>

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

939 of 3602 relevant lines covered (26.07%)

1.63 hits per line

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

0.0
/agent/pkg/event/username.go
1
package event
2

3
import "fmt"
4

5
const (
6
        DefaultPrefix = "modelz-"
7
)
8

9
func getUserIDFromNamespace(ns string) (string, error) {
×
10
        if len(ns) < 8 {
×
11
                return "", fmt.Errorf("namespace too short")
×
12
        }
×
13

14
        if ns[:len(DefaultPrefix)] != DefaultPrefix {
×
15
                return "", fmt.Errorf("namespace does not start with %s", DefaultPrefix)
×
16
        }
×
17

18
        return ns[len(DefaultPrefix):], nil
×
19
}
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