Closed Raffaello closed 4 years ago
_setCursorChar -> _setCharAtCursorPosition (?)
TODO
comment in b2f1daa533da11a702843a79480efe43932b9137 in #86. cc @Raffaello.using foreach construct.
TODO
comment in b2f1daa533da11a702843a79480efe43932b9137 in #86. cc @Raffaello.Merging #86 into master will increase coverage by
6.01%
. The diff coverage is85.71%
.
@@ Coverage Diff @@
## master #86 +/- ##
==========================================
+ Coverage 84.69% 90.70% +6.01%
==========================================
Files 2 4 +2
Lines 294 355 +61
==========================================
+ Hits 249 322 +73
+ Misses 45 33 -12
Impacted Files | Coverage Δ | |
---|---|---|
sdl2-vga-terminal/src/exceptions/exceptions.hpp | 25.00% <25.00%> (ø) |
|
sdl2-vga-terminal/src/Window.cpp | 77.77% <76.92%> (+14.14%) |
:arrow_up: |
sdl2-vga-terminal/src/VgaTerminal.cpp | 93.86% <90.38%> (+5.46%) |
:arrow_up: |
sdl2-vga-terminal/src/tui/utils.cpp | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update ce155ca...ce155ca. Read the comment docs.
codecoverage was red now green.. there is something not right or in collecting the coverage and processing or in the tests themself.... for now it is better than nothing.
start make sense spliting to a VgaTerminalRender, all the rendering functions.
TODO
comment in 0d9d2eb65787b682737a7532a59c7d3c8d3017b0 in #86. cc @Raffaello.TODO
comment in 0d9d2eb65787b682737a7532a59c7d3c8d3017b0 in #86. cc @Raffaello.failed test on mac
[ RUN ] VgaTerminal.cursorNoBlinking
2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:364: Failure
2: Expected equality of these values:
2: 0
2: SDL_WaitEventTimeout(&e, 1000)
2: Which is: 1
2: [ FAILED ] VgaTerminal.cursorNoBlinking (455 ms)
2: [----------] 24 tests from VgaTerminal (1472 ms total)
2:
2: [----------] 2 tests from VgaTerminal/CursorBlinkingTests
2: [ RUN ] VgaTerminal/CursorBlinkingTests.cursorBlinking/0
2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:30: Failure
2: Expected: (t) <= (1), actual: 11 vs 1
2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:30: Failure
2: Expected: (t) <= (1), actual: 478 vs 1
2: [ FAILED ] VgaTerminal/CursorBlinkingTests.cursorBlinking/0, where GetParam() = 500 (544 ms)
2: [ RUN ] VgaTerminal/CursorBlinkingTests.cursorBlinking/1
2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:30: Failure
2: Expected: (t) <= (1), actual: 487 vs 1
2: [ FAILED ] VgaTerminal/CursorBlinkingTests.cursorBlinking/1, where GetParam() = 500 (539 ms)
2: [----------] 2 tests from VgaTerminal/CursorBlinkingTests (1083 ms total)
the cursor blinking is outside the tolerance for the timing so it is like "not respecting the blinking speed"... actually seems an error in the formula computation... cannot be 1 the expected result. so there is a small bug in the function. "buggy test"
no clue for the no blinking test why is behaving like is "blinking".
failed test on mac
[ RUN ] VgaTerminal.cursorNoBlinking 2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:364: Failure 2: Expected equality of these values: 2: 0 2: SDL_WaitEventTimeout(&e, 1000) 2: Which is: 1 2: [ FAILED ] VgaTerminal.cursorNoBlinking (455 ms) 2: [----------] 24 tests from VgaTerminal (1472 ms total) 2: 2: [----------] 2 tests from VgaTerminal/CursorBlinkingTests 2: [ RUN ] VgaTerminal/CursorBlinkingTests.cursorBlinking/0 2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:30: Failure 2: Expected: (t) <= (1), actual: 11 vs 1 2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:30: Failure 2: Expected: (t) <= (1), actual: 478 vs 1 2: [ FAILED ] VgaTerminal/CursorBlinkingTests.cursorBlinking/0, where GetParam() = 500 (544 ms) 2: [ RUN ] VgaTerminal/CursorBlinkingTests.cursorBlinking/1 2: /Users/runner/runners/2.168.2/work/1/s/sdl2-vga-terminal/test/VgaTerminalTest.cpp:30: Failure 2: Expected: (t) <= (1), actual: 487 vs 1 2: [ FAILED ] VgaTerminal/CursorBlinkingTests.cursorBlinking/1, where GetParam() = 500 (539 ms) 2: [----------] 2 tests from VgaTerminal/CursorBlinkingTests (1083 ms total)
the cursor blinking is outside the tolerance for the timing so it is like "not respecting the blinking speed"... actually seems an error in the formula computation... cannot be 1 the expected result. so there is a small bug in the function. "buggy test"
no clue for the no blinking test why is behaving like is "blinking".
it seems just slow on mac... that's why is failing. not sure how can be slow the SDL_Timer
in macos
TODO
comment in 8154be47b12c1a9b09491168a8338a1bcd99cf7b in #86. cc @Raffaello.TODO
comment in 8154be47b12c1a9b09491168a8338a1bcd99cf7b in #86. cc @Raffaello.TODO
comment in 8154be47b12c1a9b09491168a8338a1bcd99cf7b in #86. cc @Raffaello.TODO
comment in 8154be47b12c1a9b09491168a8338a1bcd99cf7b in #86. cc @Raffaello.todo
comment in 8154be47b12c1a9b09491168a8338a1bcd99cf7b in #86. cc @Raffaello.TODO
comment in 8154be47b12c1a9b09491168a8338a1bcd99cf7b in #86. cc @Raffaello.TODO
comment in 1f48c1281ec8abf192cc2650d09256293cdbc53e in #86. cc @Raffaello.TODO
comment in 701f605951cccccd6548c37e4345da7a83848173 in #86. cc @Raffaello.TODO
comment in 701f605951cccccd6548c37e4345da7a83848173 in #86. cc @Raffaello.I don't like this desing... refactor with an interface
TODO
comment in a3674857dbcab0f8ef03074164cf2a78726cdd32 in #86. cc @Raffaello.TODO
comment in a3674857dbcab0f8ef03074164cf2a78726cdd32 in #86. cc @Raffaello.TODO
comment in 35e82dfe0804efa5d4253026290b6917447e2320 in #86. cc @Raffaello.a common beaviour of a renderer interface has to be considered now
TODO
comment in 35e82dfe0804efa5d4253026290b6917447e2320 in #86. cc @Raffaello.TODO
comment in 2f713b9346f8e66b440e96a9cdb76c779cc34b56 in #86. cc @Raffaello.TODO
comment in 6baefc3fe0d7229e772b0622fbe04859ecb65b0d in #86. cc @Raffaello.TODO
comment in 6baefc3fe0d7229e772b0622fbe04859ecb65b0d in #86. cc @Raffaello.TODO
comment in 3f18d3000534542aa3651acc75dc6db3a3f1ae4f in #86. cc @Raffaello.TODO
comment in a5cc0027d2d8938e6126e7bcfe4e0bfe6e331a52 in #86. cc @Raffaello.TODO
comment in 8562b07e310ca41b06c94f5070642ade3a086770 in #86. cc @Raffaello.I do not like this patch, but it is the only solution i have to deal with "not rendered yet" check, on slow system otherwise will always fail the check even if it is correct
TODO
comment in 8562b07e310ca41b06c94f5070642ade3a086770 in #86. cc @Raffaello.TODO
comment in 4cf8a3f0712f3bef6760cf55e2daf226f7f8ceb1 in #86. cc @Raffaello.TODO
comment in b427a376e08084fc964b453e3060207c5371e44a in #86. cc @Raffaello.TODO
comment in ef8b58a8ba22c131720916e96a0e4dd10b9bbfa6 in #86. cc @Raffaello.TODO
comment in e81f072b3d06113c4b3f763048df3ba542750fab in #86. cc @Raffaello.TODO
comment in 8a580e87be3c81844b8838294c3d2240823c7939 in #86. cc @Raffaello.TODO
comment in 10e95c8de8e48d884d555547324583720831bda1 in #86. cc @Raffaello.TODO
comment in 666630e8707959d112d765f062599fa2fb1b9bd7 in #86. cc @Raffaello.TODO
comment in 2665a530f9e8c77ad634922cdd2e567dd1e4a596 in #86. cc @Raffaello.TODO
comment in 5b8d8065ccd17177163695a4e7a15bc9aad38797 in #86. cc @Raffaello.TODO
comment in 64d2997f14b84670c4154c668d2a92bd67ec39a2 in #86. cc @Raffaello.TODO
comment in 85ed19682225421c73885651ba0cd14bae6d34b7 in #86. cc @Raffaello.TODO
comment in 070267cce5a2f173ad461784b916ebdfc61f3093 in #86. cc @Raffaello.TODO
comment in d176ccd9ef2cdcad234cfc91e9357c6b83efa5f7 in #86. cc @Raffaello.TODO
comment in 842bbfe9005984f29b345f3571f975d97b23fc2a in #86. cc @Raffaello.TODO
comment in 4277b9007fd39551b4d145491d31a103b8d49f15 in #86. cc @Raffaello.TODO
comment in 9ca66c6ee8f5c804fc3dbf097395c4c8e9aa860d in #86. cc @Raffaello.TODO
comment in 19175117a74890c9343ce27c387c2ebb1d8a085c in #86. cc @Raffaello.TODO
comment in 77f2bb4a992438b62f50ca5073d1b0ed04355838 in #86. cc @Raffaello.1 minor issue.
:relaxed: If you want to provide feedback on our bot, here is how to contact us.
Here is an overview of what got changed by this pull request:
Clones added
============
- sdl2-vga-terminal/test/tui/utilsTest.cpp 2
- sdl2-vga-terminal/src/TuiTerminal.cpp 6
- sdl2-vga-terminal/test/VgaTerminalTest.cpp 8
See the complete overview on Codacy
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities (and 0 Security Hotspots to review)
10 Code Smells
the todobot did not created the the todo issues.... 🤖 ⚠️
Checkpoint 1
Checkpoint 2
- [ ] optionally make green the PR checksduring code review
Before Merging
Extra Linked PR as a max of 10 is reached: