/* * Copyright (c) 2024, Andrew Kaster * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Ladybird { // Key function for Fixture Fixture::~Fixture() = default; Optional Fixture::lookup(StringView name) { for (auto& fixture : all()) { if (fixture->name() == name) return *fixture; } return {}; } Vector>& Fixture::all() { static Vector> fixtures; return fixtures; } void Fixture::initialize_fixtures() { } }