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

cinode / go / 15633973488

13 Jun 2025 11:57AM UTC coverage: 95.318%. Remained the same
15633973488

Pull #45

github

byo
fixup
Pull Request #45: Fix github action issues

3013 of 3161 relevant lines covered (95.32%)

1.07 hits per line

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

57.14
/pkg/cinodefs/node_file.go
1
/*
2
Copyright © 2023 Bartłomiej Święcki (byo)
3

4
Licensed under the Apache License, Version 2.0 (the "License");
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
    http://www.apache.org/licenses/LICENSE-2.0
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 cinodefs
18

19
import (
20
        "context"
21
)
22

23
// Entry is a file with its entrypoint
24
type nodeFile struct {
25
        ep *Entrypoint
26
}
27

28
func (c *nodeFile) dirty() dirtyState {
×
29
        return dsClean
×
30
}
×
31

32
func (c *nodeFile) flush(ctx context.Context, gc *graphContext) (node, *Entrypoint, error) {
×
33
        return c, c.ep, nil
×
34
}
×
35

36
func (c *nodeFile) traverse(
37
        ctx context.Context,
38
        gc *graphContext,
39
        path []string,
40
        pathPosition int,
41
        linkDepth int,
42
        isWritable bool,
43
        opts traverseOptions,
44
        whenReached traverseGoalFunc,
45
) (
46
        node,
47
        dirtyState,
48
        error,
49
) {
1✔
50
        if pathPosition == len(path) {
2✔
51
                return whenReached(ctx, c, isWritable)
1✔
52
        }
1✔
53

54
        // We're supposed to traverse into sub-path but it's not a directory
55
        return nil, 0, ErrNotADirectory
1✔
56
}
57

58
func (c *nodeFile) entrypoint() (*Entrypoint, error) {
1✔
59
        return c.ep, nil
1✔
60
}
1✔
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