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

codenotary / immudb / 18241446793

04 Oct 2025 07:32AM UTC coverage: 89.241% (-0.04%) from 89.276%
18241446793

push

gh-ci

ostafen
chore(embedded/sql): Implement BETWEEN AND expressions

Signed-off-by: Stefano Scafiti <stefano.scafiti96@gmail.com>

95 of 95 new or added lines in 1 file covered. (100.0%)

18 existing lines in 2 files now uncovered.

37767 of 42320 relevant lines covered (89.24%)

150869.02 hits per line

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

60.0
/pkg/server/session_auth_interceptor.go
1
/*
2
Copyright 2025 Codenotary Inc. All rights reserved.
3

4
SPDX-License-Identifier: BUSL-1.1
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7

8
    https://mariadb.com/bsl11/
9

10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16

17
package server
18

19
import (
20
        "context"
21

22
        "github.com/codenotary/immudb/pkg/auth"
23
        "github.com/codenotary/immudb/pkg/server/sessions"
24
        "google.golang.org/grpc"
25
)
26

27
func (s *ImmuServer) SessionAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
6,573✔
28
        if auth.GetAuthTypeFromContext(ctx) == auth.SessionAuth && info.FullMethod != "/immudb.schema.ImmuService/OpenSession" {
12,478✔
29
                sessionID, err := sessions.GetSessionIDFromContext(ctx)
5,905✔
30
                if err != nil {
5,905✔
31
                        return nil, err
×
32
                }
×
33
                if !s.SessManager.SessionPresent(sessionID) {
5,905✔
UNCOV
34
                        return nil, ErrSessionNotFound
×
UNCOV
35
                }
×
36
        }
37
        return handler(ctx, req)
6,573✔
38
}
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