Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: darvaza-proxy/core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.18.4
Choose a base ref
...
head repository: darvaza-proxy/core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.18.5
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Nov 5, 2025

  1. slices: introduce SliceP()

    returning the p-th percentile of a slice
    
    Signed-off-by: Nagy Károly Gábriel <k@jpi.io>
    karasz committed Nov 5, 2025
    Configuration menu
    Copy the full SHA
    38a1a6c View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2025

  1. slices: improve SliceP documentation and test structure

    Enhance SliceP documentation to clarify behaviour and constraints:
    - Document valid range for p parameter (0.0-1.0).
    - Clarify in-place sorting behaviour with warning.
    - Document return value for invalid inputs.
    - Improve example code with better variable naming.
    
    Refactor SliceP tests to comply with TESTING.md requirements:
    - Extract test case arrays into factory functions.
    - Reduce TestSliceP from 56 lines to 5 lines.
    - Add slicePIntTestCases(), slicePFloatTestCases(),
      slicePStringTestCases() returning []TestCase.
    
    Addresses coderabbitai review comments about documentation clarity
    and function length compliance.
    
    Signed-off-by: Alejandro Mery <amery@apptly.co>
    amery committed Nov 6, 2025
    Configuration menu
    Copy the full SHA
    05ecaea View commit details
    Browse the repository at this point in the history
  2. Merge pull request #148 (slices)

    slices: introduce SliceP()
    amery authored Nov 6, 2025
    Configuration menu
    Copy the full SHA
    c385659 View commit details
    Browse the repository at this point in the history
Loading