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

cgen,pref: add -coverage support + vcover tool #21154

Merged
merged 42 commits into from
May 27, 2024

Commits on Mar 31, 2024

  1. fix

    felipensp committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    5cad749 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. fix

    felipensp committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    c255914 View commit details
    Browse the repository at this point in the history
  2. improvement

    felipensp committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    f9ed550 View commit details
    Browse the repository at this point in the history
  3. fix

    felipensp committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    a1c524c View commit details
    Browse the repository at this point in the history
  4. improvement

    felipensp committed Apr 1, 2024
    Configuration menu
    Copy the full SHA
    68bd90d View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. improve

    felipensp committed May 13, 2024
    Configuration menu
    Copy the full SHA
    f05811a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    322d2f4 View commit details
    Browse the repository at this point in the history
  3. fix merge

    felipensp committed May 13, 2024
    Configuration menu
    Copy the full SHA
    5a8ecb8 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    8344d02 View commit details
    Browse the repository at this point in the history
  2. wip

    felipensp committed May 23, 2024
    Configuration menu
    Copy the full SHA
    0adcd12 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. wip

    felipensp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    b5d9fa6 View commit details
    Browse the repository at this point in the history
  2. fix

    felipensp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    cf6bb6f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0f4f4a7 View commit details
    Browse the repository at this point in the history
  4. wip

    felipensp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    c223eb9 View commit details
    Browse the repository at this point in the history
  5. wip

    felipensp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    791d7ba View commit details
    Browse the repository at this point in the history
  6. wip

    felipensp committed May 24, 2024
    Configuration menu
    Copy the full SHA
    a561426 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2024

  1. improve

    felipensp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    01ed4d7 View commit details
    Browse the repository at this point in the history
  2. fix

    felipensp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    1096fb5 View commit details
    Browse the repository at this point in the history
  3. added -filter

    felipensp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    c80b978 View commit details
    Browse the repository at this point in the history
  4. ignore test funcs

    felipensp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    73c3878 View commit details
    Browse the repository at this point in the history
  5. improve filtering

    felipensp committed May 25, 2024
    Configuration menu
    Copy the full SHA
    0d6665f View commit details
    Browse the repository at this point in the history
  6. change format to csv, add more details, add cmd/tools/vcover/testdata…

    …/example1 for more isolated testing, independent of the contents of any vlib module in particular
    spytheman committed May 25, 2024
    Configuration menu
    Copy the full SHA
    d16866f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2f4dbb1 View commit details
    Browse the repository at this point in the history
  8. cleanup output format for both the csv counters, and the json meta da…

    …ta for the source files, containing the points, etc
    spytheman committed May 25, 2024
    Configuration menu
    Copy the full SHA
    622ed4a View commit details
    Browse the repository at this point in the history
  9. add the build options to the .csv file too, as a comment (for easier …

    …diagnostic); add condition_test.v, to test coverage by passing `-d condition1` to `-d condition7`
    spytheman committed May 25, 2024
    Configuration menu
    Copy the full SHA
    def6f9b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    44b0c08 View commit details
    Browse the repository at this point in the history
  11. fix # build_options in cgen for `v -cc clang -cstrict -gc none -cov…

    … /tmp/cover/ a.v`, restore runtime timestamp for the counter files
    spytheman committed May 25, 2024
    Configuration menu
    Copy the full SHA
    0b03e87 View commit details
    Browse the repository at this point in the history
  12. escape the paths and build options involved in coverage reports, when…

    … they are put in generated C or generated JSON files
    spytheman committed May 25, 2024
    Configuration menu
    Copy the full SHA
    729ecc9 View commit details
    Browse the repository at this point in the history
  13. update copyright

    spytheman committed May 25, 2024
    Configuration menu
    Copy the full SHA
    f08eafb View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. Configuration menu
    Copy the full SHA
    7f9c0d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f450a55 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    19229fa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    07499c8 View commit details
    Browse the repository at this point in the history
  5. add more tests

    spytheman committed May 26, 2024
    Configuration menu
    Copy the full SHA
    bceb116 View commit details
    Browse the repository at this point in the history
  6. fix v test cmd/tools/

    spytheman committed May 26, 2024
    Configuration menu
    Copy the full SHA
    26f1b65 View commit details
    Browse the repository at this point in the history
  7. ci: fix v -os windows -coverage folder file.v failure, use GetTickC…

    …ount/0 on windows and clock_gettime/2 everywhere else
    spytheman committed May 26, 2024
    Configuration menu
    Copy the full SHA
    189d3ca View commit details
    Browse the repository at this point in the history
  8. ci: use just os.walk_ext/2, instead of os.glob/1 (the windows impleme…

    …ntation of os.glob is less well tested and differs from the unix one, unlike os.walk_ext/2)
    spytheman committed May 26, 2024
    Configuration menu
    Copy the full SHA
    dbfb62e View commit details
    Browse the repository at this point in the history
  9. fix

    felipensp committed May 26, 2024
    Configuration menu
    Copy the full SHA
    adf49d2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ec57f10 View commit details
    Browse the repository at this point in the history
  11. ci: normalise paths on windows to the unix ones for uniformity and co…

    …nsistent behaviour of the tests
    spytheman committed May 26, 2024
    Configuration menu
    Copy the full SHA
    a7c0570 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Merge branch 'master' into v_coverage

    * master:
      cgen: fix array fixed initialization on struct from call (vlang#21568)
      testing: implement a separate `-show-asserts` option, for cleaner test output (`-stats` still works, and still shows both the compilation stats and the asserts) (vlang#21578)
      toml: fix `@[toml: ]`, support `@[skip]` (vlang#21571)
      os: fix debugger_present() for non Windows OSes (vlang#21573)
      builtin: simplify splint_nth methods (vlang#21563)
      net.http: change default http.Server listening address to :9009, to avoid conflicts with tools, that start their own http servers on 8080 like bytehound (vlang#21570)
      os: make minior improvement to C function semantics and related code (vlang#21565)
      io: cleanup prefix_and_suffix/1 util function (vlang#21562)
      os: remove mut declarions for unchanged vars in `os_nix.c.v` (vlang#21564)
      builtin: reduce allocations in s.index_kmp/1 and s.replace/2 (vlang#21561)
      ci: shorten path used for unix domain socket tests (to fit in Windows path limits)
    spytheman committed May 27, 2024
    Configuration menu
    Copy the full SHA
    2f76f7b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f34dec View commit details
    Browse the repository at this point in the history