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

softlayer / softlayer-go / 13824212013

13 Mar 2025 12:26AM UTC coverage: 95.953% (-2.2%) from 98.143%
13824212013

Pull #201

github

web-flow
Merge 0268bb9e4 into 80a745b76
Pull Request #201: Bump golang.org/x/net from 0.23.0 to 0.36.0

36825 of 38378 relevant lines covered (95.95%)

7.13 hits per line

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

0.0
/session/sessionfakes/fake_iamupdater.go
1
// Code generated by counterfeiter. DO NOT EDIT.
2
package sessionfakes
3

4
import (
5
        "sync"
6

7
        "github.com/softlayer/softlayer-go/session"
8
)
9

10
type FakeIAMUpdater struct {
11
        UpdateStub        func(string, string)
12
        updateMutex       sync.RWMutex
13
        updateArgsForCall []struct {
14
                arg1 string
15
                arg2 string
16
        }
17
        invocations      map[string][][]interface{}
18
        invocationsMutex sync.RWMutex
19
}
20

21
func (fake *FakeIAMUpdater) Update(arg1 string, arg2 string) {
×
22
        fake.updateMutex.Lock()
×
23
        fake.updateArgsForCall = append(fake.updateArgsForCall, struct {
×
24
                arg1 string
×
25
                arg2 string
×
26
        }{arg1, arg2})
×
27
        stub := fake.UpdateStub
×
28
        fake.recordInvocation("Update", []interface{}{arg1, arg2})
×
29
        fake.updateMutex.Unlock()
×
30
        if stub != nil {
×
31
                fake.UpdateStub(arg1, arg2)
×
32
        }
×
33
}
34

35
func (fake *FakeIAMUpdater) UpdateCallCount() int {
×
36
        fake.updateMutex.RLock()
×
37
        defer fake.updateMutex.RUnlock()
×
38
        return len(fake.updateArgsForCall)
×
39
}
×
40

41
func (fake *FakeIAMUpdater) UpdateCalls(stub func(string, string)) {
×
42
        fake.updateMutex.Lock()
×
43
        defer fake.updateMutex.Unlock()
×
44
        fake.UpdateStub = stub
×
45
}
×
46

47
func (fake *FakeIAMUpdater) UpdateArgsForCall(i int) (string, string) {
×
48
        fake.updateMutex.RLock()
×
49
        defer fake.updateMutex.RUnlock()
×
50
        argsForCall := fake.updateArgsForCall[i]
×
51
        return argsForCall.arg1, argsForCall.arg2
×
52
}
×
53

54
func (fake *FakeIAMUpdater) Invocations() map[string][][]interface{} {
×
55
        fake.invocationsMutex.RLock()
×
56
        defer fake.invocationsMutex.RUnlock()
×
57
        fake.updateMutex.RLock()
×
58
        defer fake.updateMutex.RUnlock()
×
59
        copiedInvocations := map[string][][]interface{}{}
×
60
        for key, value := range fake.invocations {
×
61
                copiedInvocations[key] = value
×
62
        }
×
63
        return copiedInvocations
×
64
}
65

66
func (fake *FakeIAMUpdater) recordInvocation(key string, args []interface{}) {
×
67
        fake.invocationsMutex.Lock()
×
68
        defer fake.invocationsMutex.Unlock()
×
69
        if fake.invocations == nil {
×
70
                fake.invocations = map[string][][]interface{}{}
×
71
        }
×
72
        if fake.invocations[key] == nil {
×
73
                fake.invocations[key] = [][]interface{}{}
×
74
        }
×
75
        fake.invocations[key] = append(fake.invocations[key], args)
×
76
}
77

78
var _ session.IAMUpdater = new(FakeIAMUpdater)
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