You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: c_test.go
    path of file: ./repos/gapid/gapil/compiler/mangling/c
    
    the code of the file until where you have to start completion: // Copyright (C) 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package c_test

import (
	"testing"

	"github.com/google/gapid/core/assert"
	"github.com/google/gapid/core/log"
	"github.com/google/gapid/gapil/compiler/mangling"
	"github.com/google/gapid/gapil/compiler/mangling/c"
)

func TestC(t *testing.T) {
	ctx := log.Testing(t)

	/*
	   namespace food {
	   namespace fruit {

	   class Apple {
	   public:
	       int yummy(int, char*);
	       bool eat(void* person);
	       int calories();
	       bool looks_like(Apple*);
	       static bool healthy();
	       static int compare(Apple* a, Apple* b);
	       template <typename T> bool same_as(T other); (T: int)
	       template <typename X, typename Y> static void juice(); (X: int, Y: bool)
	   };

	   } // namespace fruit
	   } // namespace food
	*/
	food := &mangling.Namespace{Name: "food"}
	fruit := &mangling.Namespace{Name: "fruit", Parent: food}
	apple := &mangling.Class{Name: "Apple", Parent: fruit}

	yummy := &mangling.Function{
		Name:       "yummy",
		Return:     mangling.Int,
		Parameters: []mangling.Type{mangling.Int, mangling.Pointer{To: mangling.Char}},
		Parent:     apple,
	}

	eat := &mangling.Function{
		Name:       "eat",
		Return:     mangling.Bool,
		Parameters: []mangling.Type{mangling.Pointer{To: mangling.Void}},
		Parent:     apple,
	}

	calories := &mangling.Function{
		Name:   "calories",
		Return: mangling.Int,
		Parent: apple,
		Const:  true,
	}

	looksLike := &mangling.Function{
		Name:       "looks_like",
		Return:     mangling.Bool,
		Parameters: []mangling.Type{mangling.Pointer{To: apple}},
		Parent:     apple,
	}

	healthy := &mangling.Function{
		Name:   "healthy",
		Return: mangling.Bool,
		Static: true,
		Parent: apple,
	}

	compare 
    
func TestC(t *testing.T) {
	ctx := log.Testing(t)

	/*
	   namespace food {
	   namespace fruit {

	   class Apple {
	   public:
	       int yummy(int, char*);
	       bool eat(void* person);
	       int calories();
	       bool looks_like(Apple*);
	       static bool healthy();
	       static int compare(Apple* a, Apple* b);
	       template <typename T> bool same_as(T other); (T: int)
	       template <typename X, typename Y> static void juice(); (X: int, Y: bool)
	   };

	   } // namespace fruit
	   } // namespace food
	*/
	food := &mangling.Namespace{Name: "food"}
	fruit := &mangling.Namespace{Name: "fruit", Parent: food}
	apple := &mangling.Class{Name: "Apple", Parent: fruit}

	yummy := &mangling.Function{
		Name:       "yummy",
		Return:     mangling.Int,
		Parameters: []mangling.Type{mangling.Int, mangling.Pointer{To: mangling.Char}},
		Parent:     apple,
	}

	eat := &mangling.Function{
		Name:       "eat",
		Return:     mangling.Bool,
		Parameters: []mangling.Type{mangling.Pointer{To: mangling.Void}},
		Parent:     apple,
	}

	calories := &mangling.Function{
		Name:   "calories",
		Return: mangling.Int,
		Parent: apple,
		Const:  true,
	}

	looksLike := &mangling.Function{
		Name:       "looks_like",
		Return:     mangling.Bool,
		Parameters: []mangling.Type{mangling.Pointer{To: apple}},
		Parent:     apple,
	}

	healthy := &mangling.Function{
		Name:   "healthy",
		Return: mangling.Bool,
		Static: true,
		Parent: apple,
	}

	compare := &mangling.Function{
		Name:       "compare",
		Return:     mangling.Int,
		Parameters: []mangling.Type{mangling.Pointer{To: apple}, mangling.Pointer{To: apple}},
		Parent:     apple,
	}

	sameAs := &mangling.Function{
		Name:         "same_as",
		Return:       mangling.Bool,
		Parameters:   []mangling.Type{mangling.TemplateParameter(0)},
		TemplateArgs: []mangling.Type{mangling.Int},
		Parent:       apple,
	}

	juice := &mangling.Function{
		Name:         "juice",
		Return:       mangling.Void,
		TemplateArgs: []mangling.Type{mangling.Int, mangling.Bool},
		Parent:       apple,
	}

	for _, t := range []struct {
		name     string
		sym      mangling.Entity
		expected string
	}{
		{"food::fruit::Apple", apple, "food__fruit__Apple"},
		{"food::fruit::Apple::yummy", yummy, "food__fruit__Apple__yummy"},
		{"food::fruit::Apple::eat", eat, "food__fruit__Apple__eat"},
		{"food::fruit::Apple::calories", calories, "food__fruit__Apple__calories"},
		{"food::fruit::Apple::looks_like", looksLike, "food__fruit__Apple__looks_like"},
		{"food::fruit::Apple::healthy", healthy, "food__fruit__Apple__healthy"},
		{"food::fruit::Apple::compare", compare, "food__fruit__Apple__compare"},
		{"food::fruit::Apple::same_as", sameAs, "food__fruit__Apple__same_as_int"},
		{"food::fruit::Apple::juice", juice, "food__fruit__Apple__juice_int_bool"},
	} {
		assert.For(ctx, t.name).ThatString(c.Mangle(t.sym)).Equals(t.expected)
	}
}