github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/shared/sharedtest/README.md (about)

     1  # sharedtest
     2  
     3  `sharedtest` is a folder for shared test code.
     4  
     5  Note that when authoring tests for `shared`, while also relying on utilities
     6  available in `sharedtest`, you'll need to put the test in the `shared_test`
     7  package, which is a Golang convention for "black box" testing of the `shared`
     8  package. This is because we would otherwise have a circular dependency of
     9  
    10      shared
    11      sharedtest
    12      shared (test)
    13  
    14  where `shared (test)` are `_test.go` files in the `shared` package.