GithubHelp home page GithubHelp logo

aenachescu / nbp_old Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.25 MB

No Bugs in Production (nbp) is a header-only library for unit testing in C/C++

License: MIT License

CMake 1.34% Shell 2.74% C 94.11% Python 1.81%
c clang cpp cross-compiler cross-platform customizable gcc gplusplus header-only linux macos msvc unit-testing visual-studio-2013 visual-studio-2015 visual-studio-2017 windows

nbp_old's People

Contributors

aenachescu avatar justbeyou avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nbp_old's Issues

MultiThreaded Scheduler

I created this to keep notes. I will create a branch too.
Workflow:

  • Create test structures in NBP_CALL_TEST or NBP_CALL_TEST_CTX storing rules and their names
  • Create a graph structure containing one node for each test (the dependency graph)
  • Based on the number of tests (and maybe other configuration) create a large enough hashmap to achieve a good enough performance
  • Store all test names and their respective structure pointer in the hashmap
  • For each test, iterate over rules and resolve their targets (ie. get test pointer by name from the hashmap)
  • For each rule, create an suitable edge in the dependency graph
  • Detect if there are any cycles in the graph
  • According to the configuration, create N threads and an execution queue. Fill the queue with the tests that have no dependencies
  • Execution flow should mimic a BFS algorithm. A test node should be added to the queue only when all its dependencies are met.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.