Skip to content

Commit

Permalink
modify dataentry struc
Browse files Browse the repository at this point in the history
  • Loading branch information
DX990307 committed Mar 28, 2024
1 parent a0f2927 commit 6e1be5c
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions analysis/buffer_analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ var _ = Describe("BufferAnalyzer", func() {
timeTeller.EXPECT().CurrentTime().Return(sim.VTimeInSec(1.1)).AnyTimes()
buffer.EXPECT().Size().Return(2)
logger.EXPECT().AddDataEntry(PerfAnalyzerEntry{
Start: 0.0,
End: 1.0,
What: "Buffer",
Where: "BufferLevel",
Value: 0.9,
Unit: "",
Start: 0.0,
End: 1.0,
Where: "Buffer",
What: "BufferLevel",
EntryType: "Buffer",
Value: 0.9,
Unit: "",
})

bufferAnalyzer.Func(sim.HookCtx{
Expand All @@ -81,21 +82,23 @@ var _ = Describe("BufferAnalyzer", func() {
timeTeller.EXPECT().CurrentTime().Return(sim.VTimeInSec(2.1)).AnyTimes()
buffer.EXPECT().Size().Return(2)
logger.EXPECT().AddDataEntry(PerfAnalyzerEntry{
Start: 0.0,
End: 1.0,
Where: "Buffer",
What: "BufferLevel",
Value: 0.9,
Unit: "",
Start: 0.0,
End: 1.0,
Where: "Buffer",
What: "BufferLevel",
EntryType: "Buffer",
Value: 0.9,
Unit: "",
})

logger.EXPECT().AddDataEntry(PerfAnalyzerEntry{
Start: 1.0,
End: 2.0,
Where: "Buffer",
What: "BufferLevel",
Value: 1,
Unit: "",
Start: 1.0,
End: 2.0,
Where: "Buffer",
What: "BufferLevel",
EntryType: "Buffer",
Value: 1,
Unit: "",
})

bufferAnalyzer.Func(sim.HookCtx{
Expand Down

0 comments on commit 6e1be5c

Please sign in to comment.