MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / testGetScope

Function testGetScope

scope_test.go:507–525  ·  view source on GitHub ↗
(c *cluster, u *user, cu *clusterUser, sessionId string)

Source from the content-addressed store, hash-verified

505}
506
507func testGetScope(c *cluster, u *user, cu *clusterUser, sessionId string) *scope {
508 s := &scope{id: newScopeID()}
509 s.cluster = c
510 s.host = c.getHost()
511 if sessionId != "" {
512 s.host = c.getHostSticky(sessionId)
513 }
514 s.sessionId = sessionId
515 s.user = u
516 s.clusterUser = cu
517 s.labels = prometheus.Labels{
518 "user": "default",
519 "cluster": "default",
520 "cluster_user": "default",
521 "replica": "default",
522 "cluster_node": "default",
523 }
524 return s
525}

Callers 1

testConcurrentQueryFunction · 0.85

Calls 3

newScopeIDFunction · 0.85
getHostMethod · 0.45
getHostStickyMethod · 0.45

Tested by

no test coverage detected