// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "make_bucket_space.h" namespace document::test { BucketSpace makeBucketSpace() noexcept { return BucketSpace(1); } BucketSpace makeBucketSpace(const vespalib::string &docTypeName) noexcept { // Used by persistence conformance test to map from document type name // to bucket space. See document::TestDocRepo for known document types. if (docTypeName == "no") { return BucketSpace(3); } else if (docTypeName == "testdoctype2") { return BucketSpace(2); } else { return makeBucketSpace(); } } }