Compare commits

..

2 Commits

2 changed files with 27 additions and 1 deletions

11
.clang-format Normal file
View File

@ -0,0 +1,11 @@
# Google style C++ Code Style settings
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignOperands: Align
AllowAllArgumentsOnNextLine: true
ColumnLimit: 80
BreakBeforeBraces: Allman

View File

@ -1,3 +1,18 @@
# azkoyen_technical_test # azkoyen_technical_test
Azkoyen technical test implementation. Implemented (mostly) on standard c++ 17 framework, but with Qt wherever was necessary Azkoyen technical test implementation. Implemented (mostly) on standard c++ 17 framework, but with Qt wherever was necessary.
## Development approach
A Test-Driven Development (TDD) workflow was followed throughout the project. Every component — from the lowest-level file reader to the GUI window — has a corresponding Google Test suite that was written before (or alongside) the production code. This ensures each module behaves correctly in isolation and makes regressions immediately visible.
## SysfsRead class
- Will convert the contents of a file and output an enum class
- Reads a sysfs-like file
- If the file is missing, the reader will output Unreachable
- If the file contains only a "1" the reader will output Enabled
- If the file contains "error: temp too high", the reader will output ErrorTempTooHigh
- if the file contains any other value the reader will output UnexpectedValue
- if the file is empty: it will output Empty