commit | 5f85f4f5c9d27cdeaee9e01c572784908ff676f0 | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Mon Aug 18 14:04:16 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 18 14:04:16 2025 -0700 |
tree | d3014398d085fe779b7f19b6b71e6690ce290d57 | |
parent | 1455a56bf76540305a81a0b95300cd7fefd9b036 [diff] |
Cleanup lint issues with uses of testify in Go code Ran testifylint (https://github.com/Antonboom/testifylint) over our tests to see what issues it would detect, since testify has some inconsistent APIs, e.g. .Equal(expect, real), but .Len(obj, count), so it is easy to get args reversed or miss a better function to use. It found mostly minor things, like being able use .Len() instead of .Equal(..., len(foo)) or using .NoError() instead of .Nil() on errors, and a bunch of .Equal() calls that should be reversed. It did get a number of things wrong that I had to revert, and missed a number potential cleanups (like specific cases it could be using .NoError() or .Len() even though it identified other cases in the same file), so I don't think I would recommend us adding it to our presubmit or CI. It is a useful tool for checking your code style, but I don't think it is good enough at this point to be blocking CLs or be run in an automated fashion. Change-Id: Ib44412442af82cf3ab3bf04de7c4d68fabb1f2ca Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/257896 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Brian Sheedy <bsheedy@google.com> Commit-Queue: Brian Sheedy <bsheedy@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.