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

nats-io / nsc / 14765656943

30 Apr 2025 10:34PM UTC coverage: 69.949% (-4.2%) from 74.148%
14765656943

Pull #691

github

web-flow
Merge b4ee16f94 into a9c0df586
Pull Request #691: Generate docs

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

3680 existing lines in 93 files now uncovered.

12325 of 17620 relevant lines covered (69.95%)

1.66 hits per line

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

42.86
/cmd/accountusercontextparams.go
1
// Copyright 2018-2019 The NATS Authors
2
// Licensed under the Apache License, Version 2.0 (the "License");
3
// you may not use this file except in compliance with the License.
4
// You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software
9
// distributed under the License is distributed on an "AS IS" BASIS,
10
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
// See the License for the specific language governing permissions and
12
// limitations under the License.
13

14
package cmd
15

16
import "github.com/spf13/cobra"
17

18
type AccountUserContextParams struct {
19
        AccountContextParams
20
        UserContextParams
21
}
22

23
func (p *AccountUserContextParams) BindFlags(cmd *cobra.Command) {
24
        p.AccountContextParams.BindFlags(cmd)
25
        p.UserContextParams.BindFlags(cmd)
2✔
26
}
2✔
27

2✔
28
func (p *AccountUserContextParams) SetDefaults(ctx ActionCtx) error {
2✔
29
        if err := p.AccountContextParams.SetDefaults(ctx); err != nil {
30
                return err
2✔
31
        }
2✔
UNCOV
32
        if err := p.UserContextParams.SetDefaults(ctx); err != nil {
×
33
                return err
×
34
        }
2✔
UNCOV
35
        return nil
×
UNCOV
36
}
×
37

2✔
38
func (p *AccountUserContextParams) Edit(ctx ActionCtx) error {
39
        if err := p.AccountContextParams.Edit(ctx); err != nil {
40
                return err
×
41
        }
×
UNCOV
42
        if err := p.UserContextParams.Edit(ctx); err != nil {
×
43
                return err
×
44
        }
×
UNCOV
45
        return nil
×
UNCOV
46
}
×
UNCOV
47

×
48
func (p *AccountUserContextParams) Validate(ctx ActionCtx) error {
49
        if err := p.AccountContextParams.Validate(ctx); err != nil {
50
                return err
2✔
51
        }
2✔
UNCOV
52
        if err := p.UserContextParams.Validate(ctx); err != nil {
×
53
                return err
×
54
        }
2✔
UNCOV
55
        return nil
×
UNCOV
56
}
×
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