package provider

  1. Overview
  2. Docs

This module is exported for testing purposes only.

Its interface may change in breaking ways without requiring a major version of the library to be minted. Do not use.

val same_trait_uids : ('t1, _) t -> ('t2, _) t -> bool

same_trait_uids i1 i2 checks if the Traits of two providers are the same and in the same order.

val cache : (_, _) t -> Trait.Uid.t option

Exported to test the caching strategy. Retains the most recently looked up Trait. Currently returns None for empty provider, and if the provider is not empty, returns the most recently looked up Trait (Some uid) or an arbitrary initial value.

val dedup_sorted_keep_last : 'a list -> compare:('a -> 'a -> int) -> 'a list

Part of the strategy for make, extend, etc.

module Import : sig ... end

Exported things from the import module we'd like to test separately.

module Trait0 : sig ... end
OCaml

Innovation. Community. Security.