blob: 5d8c879703f1d15df2578c03a5b6c7622f76de57 [file] [log] [blame]
// Copyright 2018 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"
#include "test_library.h"
namespace {
TEST(JsonGeneratorTests, check_json_goldens) {
auto result = check_goldens(Generator::kJson);
// 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