Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.4 #158

Merged
merged 9 commits into from
May 26, 2020
Merged

V0.4 #158

merged 9 commits into from
May 26, 2020

Conversation

Raffaello
Copy link
Owner

@Raffaello Raffaello commented May 25, 2020

  • add test for all write methods that should output the same result
  • add test for all writeXY methods that should output the same result

@Raffaello Raffaello added enhancement New feature or request refactor improve the code without enhancing in functionalities examples related to examples how to use the lib labels May 25, 2020
@Raffaello Raffaello added this to the Version 0.4.0 milestone May 25, 2020
@Raffaello Raffaello self-assigned this May 25, 2020
@todo

This comment has been minimized.

@Raffaello Raffaello linked an issue May 25, 2020 that may be closed by this pull request
2 tasks
@codecov
Copy link

codecov bot commented May 25, 2020

Codecov Report

Merging #158 into master will decrease coverage by 2.27%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #158      +/-   ##
==========================================
- Coverage   90.90%   88.63%   -2.28%     
==========================================
  Files           5        5              
  Lines         374      387      +13     
==========================================
+ Hits          340      343       +3     
- Misses         34       44      +10     
Impacted Files Coverage Δ
sdl2-vga-terminal/src/VgaTerminal.cpp 90.78% <0.00%> (-3.15%) ⬇️

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 b81e84f...71399ec. Read the comment docs.

@todo
Copy link

todo bot commented May 26, 2020

major version refactor to a struct

instead of having first and second have a struct with x, y.


// TODO major version refactor to a struct
// BODY instead of having first and second
// BODY have a struct with x, y.
typedef std::pair<uint8_t, uint8_t> position_t;
enum class CURSOR_MODE : uint8_t {


This comment was generated by todo based on a TODO comment in a182537 in #158. cc @Raffaello.

@Raffaello Raffaello removed the enhancement New feature or request label May 26, 2020
@todo
Copy link

todo bot commented May 26, 2020

this could be an "utility method" itself

consider to create in VgaTerminal class an operator/method to implement the same functionality here. Probably, not just the same if want to keep the fine element level checks like below.


// TODO this could be an "utility method" itself
// BODY consider to create in VgaTerminal class
// BODY an operator/method to implement the same functionality here.
// BODY Probably, not just the same if want to keep the fine element level checks like below.
void cmpViewportCheck(const SDL_Rect& vp, const SDL_Rect& exp)
{


This comment was generated by todo based on a TODO comment in 71399ec in #158. cc @Raffaello.

@todo
Copy link

todo bot commented May 26, 2020

this could be an "utility method" itself

consider to create in VgaTerminal class an operator/method to implement the same functionality here. Probably, not just the same if want to keep the fine element level checks like below.


// TODO this could be an "utility method" itself
// BODY consider to create in VgaTerminal class
// BODY an operator/method to implement the same functionality here.
// BODY Probably, not just the same if want to keep the fine element level checks like below.
void cmpTerminalChar(const VgaTerminal::terminalChar_t& tc1, const VgaTerminal::terminalChar_t& tc2)
{


This comment was generated by todo based on a TODO comment in 71399ec in #158. cc @Raffaello.

Copy link
Owner Author

Codacy Here is an overview of what got changed by this pull request:

Clones removed
==============
+ sdl2-vga-terminal/test/VgaTerminalTest.cpp  -2
         

See the complete overview on Codacy

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (1.8.0_252) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11.
Read more here

@Raffaello Raffaello merged commit 62bc96c into master May 26, 2020
@Raffaello Raffaello deleted the v0.4 branch May 26, 2020 15:06
Raffaello added a commit that referenced this pull request Nov 29, 2021
* [VgaTerminal] add writeXY overload methods

* [VgaTerminal | optimization] write char only if different

* update to v0.4.0

* update examples. Fixes #156

* update README.md

* update cmake config

* [VgaTerminal | writeXY ] add overload methods

* update README

* add write{,XY} tests

[azure pipeline] release github connection change]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples related to examples how to use the lib refactor improve the code without enhancing in functionalities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VgaTerminal] add writeXY overload methods
1 participant