blob: 59230b904ee029440339fa83c29da660208f5dc2 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// If this test is failing, regen goldens using zircon/tools/fidl/testdata/regen.sh.
#include <zxtest/zxtest.h>
#include "goldens.h"
#include "goldens_test.h"
namespace {
TEST(TablesGeneratorTests, check_tables_goldens) {
auto result = check_goldens(Generator::kTables);
// Add a sanity check that we have checked at least some number of goldens
// so that the test doesn't silently pass if the goldens have moved and this
// test doesn't find/test them
ASSERT_GE(result.num_goldens, 10);
ASSERT_FALSE(result.failed);
}
} // namespace