GSoC/GCI Archive
Google Code-in 2010 Parrot Foundation and The Perl Foundation

Test coverage for Parrot_io_get_last_file_position

completed by: Matt Rajca

mentors: whiteknight

Task Description: Test coverage is important because it lets us know what parts of the code are tested and verified, and which are not. We may never have perfect coverage, but we would like it to be as high as possible.

The function src/io/filehandle.c:Parrot_io_get_last_file_position currently has no test coverage. Evaluate this function to determine if it is called from anywhere in the codebase. If It is called, add a test or tests to cover it completely. If not, we need to remove that function following a deprecation cycle.

Steps to Complete:

  1. Create a clone of parrot/parrot on Github
  2. Evaluate the function src/io/filehandle.c:Parrot_io_get_last_file_position
    • If it is being used, Test it.
    • If it is not being used:
      1. Create a new git branch and remove that function
      2. Open a new ticket at trac.parrot.org to recommend removal. Mark the ticket as a "deprecation", and assign it to whiteknight.
  3. If necessary, open a pull request on Github to have any code changes merged