(t testing.TB)
| 2453 | } |
| 2454 | |
| 2455 | func testEnvs(t testing.TB) map[string]testEnv { |
| 2456 | return map[string]testEnv{ |
| 2457 | "default": { |
| 2458 | functions: []*decls.FunctionDecl{ |
| 2459 | testFunction(t, "fg_s", |
| 2460 | decls.Overload("fg_s_0", []*types.Type{}, types.StringType)), |
| 2461 | testFunction(t, "fi_s_s", |
| 2462 | decls.MemberOverload("fi_s_s_0", |
| 2463 | []*types.Type{types.StringType}, types.StringType)), |
| 2464 | }, |
| 2465 | idents: []*decls.VariableDecl{ |
| 2466 | decls.NewVariable("is", types.StringType), |
| 2467 | decls.NewVariable("ii", types.IntType), |
| 2468 | decls.NewVariable("iu", types.UintType), |
| 2469 | decls.NewVariable("iz", types.BoolType), |
| 2470 | decls.NewVariable("ib", types.BytesType), |
| 2471 | decls.NewVariable("id", types.DoubleType), |
| 2472 | decls.NewVariable("ix", types.NullType), |
| 2473 | }, |
| 2474 | }, |
| 2475 | } |
| 2476 | } |
| 2477 | |
| 2478 | type testInfo struct { |
| 2479 | // in contains the expression to be parsed. |
no test coverage detected