Running ‘testthat.R’ [51s/57s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #! /usr/bin/env Rscript
  > 
  > library(testthat)
  > library(thriftr)
  > 
  > test_check("thriftr")
  ── 1. Error: (unknown) (@test.test_base.R#7)  ──────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("addressbook.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 2. Error: (unknown) (@test.test_const.R#7)  ─────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("const.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 3. Error: test_comments (@test.test_parser.R#8)  ────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/comments.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 4. Error: test_constants (@test.test_parser.R#12)  ──────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/constants.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 5. Error: test_include (@test.test_parser.R#35)  ────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/include.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 6. Error: test_tutorial (@test.test_parser.R#40)  ───────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/tutorial.thrift", include_dirs = list("./parser-cases"))
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 7. Failure: test_e_type_error (@test.test_parser.R#62)  ─────────────────────
  `thriftr::t_load("parser-cases/e_type_error_0.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Type error for constant int32 at line 1"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_type_error_0.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 8. Failure: test_e_type_error (@test.test_parser.R#64)  ─────────────────────
  `thriftr::t_load("parser-cases/e_type_error_1.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Type error for constant dct at line 1"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_type_error_1.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 9. Failure: test_e_type_error (@test.test_parser.R#66)  ─────────────────────
  `thriftr::t_load("parser-cases/e_type_error_2.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Type error for constant jack at line 6"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_type_error_2.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 10. Error: test_value_ref (@test.test_parser.R#71)  ─────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/value_ref.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 11. Error: test_type_ref (@test.test_parser.R#81)  ──────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/type_ref.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 12. Failure: test_e_value_ref (@test.test_parser.R#92)  ─────────────────────
  `thriftr::t_load("parser-cases/e_value_ref_0.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Can't find name ref at line 1"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_value_ref_0.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 13. Failure: test_e_value_ref (@test.test_parser.R#94)  ─────────────────────
  `thriftr::t_load("parser-cases/e_value_ref_1.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Couldn't find a named value in enum Lang for value 3"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_value_ref_1.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 14. Failure: test_e_value_ref (@test.test_parser.R#96)  ─────────────────────
  `thriftr::t_load("parser-cases/e_value_ref_2.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]No enum value or constant found named Cookbook"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_value_ref_2.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 15. Error: test_enums (@test.test_parser.R#101)  ────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/enums.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 16. Error: test_structs (@test.test_parser.R#118)  ──────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/structs.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 17. Failure: test_e_structs (@test.test_parser.R#160)  ──────────────────────
  `thriftr::t_load("parser-cases/e_structs_0.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Field name was required to create constant for type User"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_structs_0.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 18. Failure: test_e_structs (@test.test_parser.R#162)  ──────────────────────
  `thriftr::t_load("parser-cases/e_structs_1.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]No field named avatar was found in struct of type User"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_structs_1.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 19. Error: test_service (@test.test_parser.R#167)  ──────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/service.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 20. Error: test_service_extends (@test.test_parser.R#210)  ──────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/service_extends.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 21. Failure: test_e_service_extends (@test.test_parser.R#216)  ──────────────
  `thrift <- thriftr::t_load("parser-cases/e_service_extends_0.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Can't find service shared.NotExistService for service PingService to extend"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_service_extends_0.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 22. Failure: test_e_dead_include (@test.test_parser.R#221)  ─────────────────
  `thriftr::t_load("parser-cases/e_dead_include_0.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftParserError\\]Dead including"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_dead_include_0.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 23. Failure: test_e_grammer_error_at_eof (@test.test_parser.R#226)  ─────────
  `thriftr::t_load("parser-cases/e_grammer_error_at_eof.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftGrammerError\\]Grammar error at EOF"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_grammer_error_at_eof.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 24. Failure: test_e_use_thrift_reserved_keywords (@test.test_parser.R#231)  ─
  `thriftr::t_load("parser-cases/e_use_thrift_reserved_keywords.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftLexerError\\]Cannot use reserved language keyword: next at line 1"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_use_thrift_reserved_keywords.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 25. Failure: test_e_duplicate_field_id_or_name (@test.test_parser.R#236)  ───
  `thriftr::t_load("parser-cases/e_duplicate_field_id.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftGrammerError\\]'1:efg' field identifier/name has already been used"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_duplicate_field_id.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 26. Failure: test_e_duplicate_field_id_or_name (@test.test_parser.R#238)  ───
  `thriftr::t_load("parser-cases/e_duplicate_field_name.thrift")` threw an error with unexpected message.
  Expected match: "\\[ThriftGrammerError\\]\\'2:abc\\' field identifier/name has already been used"
  Actual message: "attempt to select more than one element in get1index <real>"
  Backtrace:
    1. testthat::expect_error(...)
    6. thriftr::t_load("parser-cases/e_duplicate_field_name.thrift")
    7. thriftr:::parse(path, module_name, include_dirs = include_dirs)
    8. rly::yacc(Parser)
    9. LRGeneratedTable$new(grammar, method, debuglog)
   10. .subset2(public_bind_env, "initialize")(...)
   11. self$lr_parse_table()
  
  ── 27. Error: test_thrift_meta (@test.test_parser.R#243)  ──────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/tutorial.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 28. Error: test_recursive_union (@test.test_parser.R#255)  ──────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/recursive_union.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 29. Error: test_issue_215 (@test.test_parser.R#282)  ────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("parser-cases/issue_215.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 30. Error: test_recursive_definition (@test.test_recursive_definition.R#8)  ─
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("recursive_definition.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 31. Error: test_const (@test.test_recursive_definition.R#24)  ───────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("recursive_definition.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ── 32. Error: test_set (@test.test_type.R#8)  ──────────────────────────────────
  attempt to select more than one element in get1index <real>
  Backtrace:
   1. thriftr::t_load("type.thrift")
   2. thriftr:::parse(path, module_name, include_dirs = include_dirs)
   3. rly::yacc(Parser)
   4. LRGeneratedTable$new(grammar, method, debuglog)
   5. .subset2(public_bind_env, "initialize")(...)
   6. self$lr_parse_table()
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 36 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 32 ]
  1. Error: (unknown) (@test.test_base.R#7) 
  2. Error: (unknown) (@test.test_const.R#7) 
  3. Error: test_comments (@test.test_parser.R#8) 
  4. Error: test_constants (@test.test_parser.R#12) 
  5. Error: test_include (@test.test_parser.R#35) 
  6. Error: test_tutorial (@test.test_parser.R#40) 
  7. Failure: test_e_type_error (@test.test_parser.R#62) 
  8. Failure: test_e_type_error (@test.test_parser.R#64) 
  9. Failure: test_e_type_error (@test.test_parser.R#66) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted