Skip to content

Tests that "spoof" the CPU, in order to test all code paths? #7

@DilumAluthge

Description

@DilumAluthge

If you look at the coverage for #6 (https://codecov.io/gh/JuliaLinearAlgebra/Octavian.jl/pull/6/diff), you'll see there are some code paths that are difficult to get coverage for.

For example, look at line 58 of src/block_sizes.jl. Line 58 is only executed if the condition 2_L2 * L2c > _L3 * L3c is true. If I understand correctly, all of these values are derived from VectorizationBase.CACHE_SIZE and VectorizationBase.CACHE_COUNT, which means that they are derived from the properties of the CPU.

Is there a way that we can "spoof" the CPU that is being used, so that we can make sure that we are testing all code paths?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions