Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s0mewha7/bmstu-cpp-works
a repository storing implementations of various built-in functions сpp language
https://github.com/s0mewha7/bmstu-cpp-works
1semestr cmake cpp23 git gitignore google-mock google-test homework-project homeworks list makefile optional readme-md string tree-structure vector workflow
Last synced: 27 days ago
JSON representation
a repository storing implementations of various built-in functions сpp language
- Host: GitHub
- URL: https://github.com/s0mewha7/bmstu-cpp-works
- Owner: s0mewha7
- Created: 2023-11-01T12:11:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-13T16:15:11.000Z (7 months ago)
- Last Synced: 2024-11-06T17:48:17.081Z (3 months ago)
- Topics: 1semestr, cmake, cpp23, git, gitignore, google-mock, google-test, homework-project, homeworks, list, makefile, optional, readme-md, string, tree-structure, vector, workflow
- Language: C++
- Homepage:
- Size: 2.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BMSTU homeworks
| **CI Service** | Build Status | Codestyle Check |
|:---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| GitHub Actions | [![Build Status (GitHub Actions)](https://github.com/s0mewha7/bmstu-cpp-works/actions/workflows/ci-cmake-tests.yml/badge.svg)](https://github.com/s0mewha7/bmstu-cpp-works/actions/workflows/ci-cmake-tests.yml) | [![Build Status (GitHub Actions)](https://github.com/s0mewha7/bmstu-cpp-works/actions/workflows/ci-cpp-style-check.yml/badge.svg)](https://github.com/s0mewha7/bmstu-cpp-works/actions/workflows/ci-cpp-style-check.yml) |## Description
This repository contains homework assignments completed in the C++ programming language
using Google Test for testing. Each homework assignment is presented in a separate directory containing files with source code and tests.## Directory Structure
This repository has the following structure for example:
```bash
bmstu-cpp-works/
├── dummy_vector/
│ ├── array_bundle.h # Header file for simulating arrays
│ ├── vector_template.h # Header file for simulating vectors
│ ├── vector_test.cpp # File with tests for simulating vectors
│ └── CMakeLists.txt # CMake file for building the project in the dummy_vector directory
├── dummy_string/
│ ├── string_bundle.h # Header file for simulating strings
│ ├── string_template.h # Header file for working with string templates
│ ├── string_test.cpp # File with tests for simulating strings
│ └── CMakeLists.txt # CMake file for building the project in the dummy_string directory
├── dummy_list/
│ ├── basic_list.h # Header file for simulating linked lists
│ ├── list_testing.cpp # File with tests for simulating linked lists
│ └── CMakeLists.txt # CMake file for building the project in the dummy_list directory
├── ... # Other directories with homeworks
├── README.md # Documentation and instructions for usage
└── CMakeLists.txt # Main CMake file for setting up the project and building
...
```
## Build Project
- **Building the Project:** Use CMake to build the project. Ensure that CMake is installed on your system. If not, download and install it from https://cmake.org/download/ or if you use Linux, download package using terminal (Example for Fedora:```
sudo dnf install cmake```).
- **Installing Google Test Framework:** Install using ```git clone https://github.com/google/googletest.git``` and etc.
- **Testing the Code:** Run the tests to ensure the correctness of the implemented code. Use the following commands:
```bash
mkdir build && cd build
cmake ..
cmake --build .
ctest or ./name_of_project
```
## License
This project is licensed under the [MIT License](https://github.com/git/git-scm.com/blob/main/MIT-LICENSE.txt)
.