IR unit tests #280
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#280
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:object-3607"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added unit tests for processors and other IR parts.
Added interfaces to mock deps.
f599fd7a8a
to1bcc364622
df98e0bdd1
toeb09ee28d5
eb09ee28d5
to0dad65b149
0dad65b149
to1fbb919131
da1124286e
to6910fda2b9
6910fda2b9
toeae5fc2604
eae5fc2604
toe2224981ae
8bbc81b9f6
to2c8876ac15
11f00efb82
to131440e330
131440e330
to809bc489b1
WIP: IR unit teststo IR unit tests@ -30,3 +29,3 @@
func (cp *Processor) handleDelete(ev event.Event) {
del := ev.(containerEvent.Delete)
del := ev.(deleteEvent)
Have you considered makinf
containerevent.Delete
have public fields? It's just a collection of values.Fixed
@ -0,0 +87,4 @@
counter: 100,
duration: 10,
}
r := &testEpochResetter{}
It is possible to move all this repetitive
test{}
andNew
into a single function?Fixed for large initialization lists.
@ -0,0 +9,4 @@
)
func NewNetmapClient(netmapClient *netmapclient.Client) Client {
return &netmapClientWrapper{
Why do we need a wrapper?
To mock
Morph
calls.@ -126,2 +126,4 @@
return util.Uint160DecodeStringLE(contractStr)
}
type parserMorph interface {
resolver
?fixed
@ -0,0 +31,4 @@
}
t.Run("success", func(t *testing.T) {
key, err := keys.NewPublicKeyFromString("022bb4041c50d607ff871dec7e4cd7778388e0ea6849d84ccbd9aa8f32e16a8131")
irKeys[2]
?fixed
809bc489b1
to0163f4689b
0163f4689b
tobb93d7db92
bb93d7db92
to14f532fad3
14f532fad3
toc02dda1139
c02dda1139
toab5dd7fb0f
ab5dd7fb0f
to1c7432c4e1
1c7432c4e1
tobf3c080393
bf3c080393
to56928acde9
56928acde9
tof83e297899
f83e297899
to0ef5b246c6
0ef5b246c6
to3d1bbce48b
LGTM