CodeSampleX

Lo que la red encontró

Cada línea de abajo es una medición, no una opinión. Todas enlazan a una muestra publicada cuyo contract se ejecuta en un contenedor fijado y sin red, así que puedes volver a ejecutarlo y contradecir el resultado.

El sistema y el runtime proceden del entorno registrado por la muestra; al filtrar se omiten los datos ausentes.

597 hallazgos en 8 ecosistemas.

Lo que dice la muestra y mide su contrato

151–175 de 568, medidos por muestras publicadas.

  1. golangContrato de muestrago · linux/x64github.com/google/uuid@v1.6.0

    Se creeSetting a failing random source causes uuid.New() to return a zeroed Nil UUID quietly, while SetRand(nil) panics on subsequent generation.

    Medidouuid.SetRand with a failing entropy source causes uuid.New and uuid.NewString to panic immediately with the reader error while uuid.NewRandom returns uuid.Nil and the error, and uuid.SetRand(nil) safely restores crypto/rand without a nil pointer panic.

  2. hexContrato de muestraelixir · linux/x64plug@1.20.3

    Se creePlug.Session validates secret_key_base at initialization alongside signing_salt and accepts standard 32-byte keys for cryptographic signing.

    Medidoassert Plug.Session.init/1 enforces :signing_salt for cookie storage at initialization but defers :secret_key_base validation until runtime, where omitting it or providing fewer than 64 bytes raises ArgumentError only when fetching or writing cookies

  3. npmContrato de muestranode · linux/x64jsdom@26.1.0

    Se creeInstantiating JSDOM with default options provides a working window where localStorage and sessionStorage methods can be used immediately in-memory without configuring a URL.

    MedidoAccessing window.localStorage or window.sessionStorage on a default JSDOM instance throws a SecurityError DOMException because about:blank has an opaque origin.

  4. npmContrato de muestranode · linux/x64lightningcss@1.33.0

    Se creecompiling pure CSS modules silently drops top-level element selectors or emits them unchanged as global styles without error

    Medidotransform with cssModules.pure set to true throws a SyntaxError stating that a selector in CSS modules should contain at least one class or ID selector when encountering impure element selectors

  5. npmContrato de muestranode · linux/x64postcss@8.5.26

    Se creePassing map: true to postcss.process() returns a separate source map generator object on result.map

    Medidopostcss.process(css, { map: true }) leaves result.map undefined because boolean true enables inline base64 comments in result.css, requiring map: { inline: false } to populate result.map with an external SourceMapGenerator

  6. npmContrato de muestranode · linux/x64zod@3.24.2

    Se creeA custom error map returning an empty object falls back to Zod's default error message, and global setErrorMap overrides validation messages across all nested schemas.

    MedidoReturning an empty object from a custom error map leaves the issue message undefined rather than falling back to ctx.defaultError, causing error.format() and error.flatten() to produce arrays containing undefined.

  7. pypiContrato de muestrapython · linux/x64python-dateutil@2.9.0.post0

    Se creePassing positive offset strings like tzstr('EST+5') or configuring posix_offset=True produces a timezone 5 hours ahead of UTC.

    Medidotzstr('EST+5') produces an offset of -5 hours (UTC-5) per POSIX standard inversion, whereas tzstr('UTC+5') defaults to +5 hours (UTC+5) unless posix_offset=True is set

  8. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeInitializing a Color with hexadecimal 0x808080 stores raw normalized channel values (128/255 ≈ 0.502) identically to new Color(0.502, 0.502, 0.502).

    MedidoWhen ColorManagement.enabled is true, Color interprets hexadecimal, CSS string, and named color inputs as sRGB and converts them to linear working space (~0.216 for 0x808080), whereas numeric constructors assume linear space (~0.502).

  9. npmContrato de muestranode · linux/x64typescript@5.9.3

    Se creeSetting compilerOptions.module to ESNext automatically enables modern Node or Bundler module resolution to resolve node_modules packages.

    MedidoWhen compilerOptions.moduleResolution is omitted, compilerOptions.module set to ESNext defaults moduleResolution to Classic (1) rather than Node or Bundler, while Preserve defaults to Bundler (100) and Node16 defaults to Node16 (3).

  10. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeWebGLRenderer accepts WebGLRenderingContext instances with backwards compatibility fallback and allows coordinateSystem reconfiguration.

    MedidoWebGLRenderer throws an explicit error when initialized with a WebGLRenderingContext (WebGL 1), requires WebGL 2, and exposes a read-only coordinateSystem returning WebGLCoordinateSystem (2000).

  11. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeTexture.transformUv automatically recomputes transformed UV coordinates from updated offset, repeat, and rotation properties when matrixAutoUpdate is true.

    MedidoTexture.transformUv mutates the input Vector2 in place using its internal Matrix3 followed by wrapping and flipY inversion, but mutating offset or repeat has no effect until updateMatrix is explicitly invoked despite matrixAutoUpdate being true.

  12. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeWebGLRenderer.capabilities exposes a maxAnisotropy numeric property or getMaxAnisotropy defaults to 1 when anisotropic filtering extensions are missing

    Medidorenderer.capabilities.getMaxAnisotropy() returns 0 rather than 1 or undefined when EXT_texture_filter_anisotropic is missing, leaving capabilities.maxAnisotropy undefined.

  13. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeVector3.subVectors returns a new Vector3 instance representing the difference of two vectors or subtracts both arguments from the receiver's initial value.

    MedidoVector3.subVectors(a, b) computes the component-wise difference a - b into the receiver, mutating it in place and returning its reference for chaining while leaving operands a and b unchanged.

  14. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeSkeleton.update writes absolute bone world matrices into boneMatrices and automatically recomputes hierarchy transforms when bone positions change.

    MedidoSkeleton.update multiplies each bone's matrixWorld by its boneInverse to populate boneMatrices with relative skinning offsets, producing 4x4 identity matrices at bind pose regardless of non-zero bone world coordinates.

  15. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeCanvasTexture defaults colorSpace to SRGBColorSpace or forwards a colorSpace constructor argument like Texture.

    MedidoCanvasTexture initializes colorSpace to NoColorSpace ('') and silently drops any 10th colorSpace constructor argument because its constructor accepts only 9 parameters.

  16. npmContrato de muestranode · linux/x64three@0.185.1

    Se creetransformUv automatically synchronizes with texture offset and repeat when matrixAutoUpdate is enabled, and CanvasTexture serializes with metadata type CanvasTexture.

    MedidoCanvasTexture transforms UV coordinates with flipY inversion but leaves transformUv unaffected by offset or repeat changes until updateMatrix is called manually, even when matrixAutoUpdate is true.

  17. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeSkinnedMesh.applyBoneTransform loads vertex coordinates from geometry.attributes.position into target and returns the transformed vertex in world space.

    MedidoSkinnedMesh.applyBoneTransform transforms the coordinates provided directly in the target vector rather than fetching position attributes from geometry, mutating target in-place and returning it in local mesh space.

  18. npmContrato de muestranode · linux/x64three@0.185.1

    Se creecloning a ShaderMaterial shallow-copies uniforms and passing index0AttributeName to the constructor assigns it to the material instance

    MedidoShaderMaterial deep-clones Three math uniforms so mutations to cloned Vector and Color values do not mutate the original material, while resetting render-target textures to null.

  19. npmContrato de muestranode · linux/x64three@0.185.1

    Se creePointLight defaults decay to 1 for linear attenuation, treats power as an independent property in Watts, and interprets distance=0 as disabling light emission.

    MedidoPointLight defaults decay to 2 (physically correct inverse-square falloff) and distance to 0 (infinite cutoff distance), while dynamically calculating luminous power in lumens as 4*pi times luminous intensity in candela.

  20. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeMeshSurfaceSampler.sample returns a new sampled point object or Vector3 instance.

    MedidoMeshSurfaceSampler.sample populates passed target vectors in place and returns the MeshSurfaceSampler instance for chaining rather than returning a new sample object.

  21. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeInstancedMesh sets type to 'InstancedMesh', initializes instanceColor to an allocated buffer on construction, and requires manual bounding sphere computation before raycasting.

    MedidoInstancedMesh inherits type 'Mesh' while identifying via isInstancedMesh true, initializes all instance matrices to identity, and keeps instanceColor null until setColorAt is called.

  22. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeCanvasTexture initializes with version 0 like Texture, and reading needsUpdate returns a boolean indicating whether the texture is flagged for update.

    MedidoCanvasTexture constructor triggers needsUpdate to initialize version and source.version at 1 rather than 0, while reading needsUpdate evaluates to undefined because needsUpdate is a setter-only property on Texture.

  23. npmContrato de muestranode · linux/x64three@0.185.1

    Se creeInstancedBufferGeometry initializes instanceCount to 0 and BufferGeometryLoader restores the configured instanceCount from JSON

    MedidoInstancedBufferGeometry initializes instanceCount to Infinity by default and preserves a configured instanceCount upon clone(), but BufferGeometryLoader.parse() resets instanceCount to Infinity when deserializing toJSON() output.

  24. npmContrato de muestranode · linux/x64@tanstack/query-core@5.90.20

    Se creeQueryClient.ensureQueryData refetches stale data before returning, and QueryClient.setQueryData clears cached entries when the updater returns undefined.

    MedidoQueryClient.ensureQueryData returns cached data without calling queryFn even when staleTime is 0

  25. hexContrato de muestraelixir · linux/x64nimble_csv@1.3.0

    Se creeNimbleCSV.parse_string parses all CSV rows by default, returning a one-row list for single-line CSV and a list containing header and data rows for multiline CSV.

    MedidoNimbleCSV.RFC4180.parse_string defaults to skip_headers: true, returning an empty list for a single-row CSV and omitting the header row for multiline CSV unless skip_headers: false is explicitly passed.

Cómo comprobar cualquier línea de aquí

Abre la muestra, lee su contract y ejecútalo. El contract es la propia prueba de la muestra: se ejecuta sin red en un contenedor fijado, y el recibo firmado de esa ejecución es lo que la red guarda. Nada de esto depende de cómo leamos una biblioteca, solo de lo que la biblioteca hizo.

Algunas muestras publicadas no están en esta página. Su contrato pasó y la muestra está activa, pero ninguna línea de ese contrato se lee como una frase. Una aserción como expect(x).toBe(1), puesta junto a la creencia que comprueba, no le dice nada a quien lee. Preferimos dejarlas fuera antes que publicar pruebas que nadie puede leer.