草庐IT

javascript - ESLint 意外悬空 '_' 中的 '__place' 无下划线悬空

我有以下JSON响应,为了验证__place,我使用了responseData.search[0].edges[0].node.__place{"data":{"search":[{"__place":"SearchResultItemConnection","edges":[{"cursor":"New","node":{"__place":"Delhi","name":"AIIMS"}}]}]}}我收到ESLint错误,指出“errorUnexpecteddangling'_'in'__typename'no-underscore-dangle”我浏览了链接,http://esli

c++ - TEST() 名称中的无下划线规则有多严格?

ThedocumentofGoogleTest说:TEST()argumentsgofromgeneraltospecific.Thefirstargumentisthenameofthetestcase,andthesecondargumentisthetest'snamewithinthetestcase.BothnamesmustbevalidC++identifiers,andtheyshouldnotcontainunderscore(_).这让我很惊讶,因为我通常用下划线命名测试(而不是CamelCase),例如:TEST(foo_test,should_fail_if_e