René's URL Explorer Experiment


Title: Wrong result for has_suite and is_suite when suite annotation is missing · Issue #976 · utPLSQL/utPLSQL · GitHub

Open Graph Title: Wrong result for has_suite and is_suite when suite annotation is missing · Issue #976 · utPLSQL/utPLSQL

X Title: Wrong result for has_suite and is_suite when suite annotation is missing · Issue #976 · utPLSQL/utPLSQL

Description: Describe the bug The functions ut_runner.has_suites and ut_runner.is_suite return a true, even if the annotation suite is missing. Provide version info Information about utPLSQL and Database version, SQL> declare 2 l_version varchar2(255...

Open Graph Description: Describe the bug The functions ut_runner.has_suites and ut_runner.is_suite return a true, even if the annotation suite is missing. Provide version info Information about utPLSQL and Database versio...

X Description: Describe the bug The functions ut_runner.has_suites and ut_runner.is_suite return a true, even if the annotation suite is missing. Provide version info Information about utPLSQL and Database versio...

Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/976

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong result for has_suite and is_suite when suite annotation is missing","articleBody":"**Describe the bug**\r\n\r\nThe functions `ut_runner.has_suites` and `ut_runner.is_suite` return a true, even if the annotation `suite` is missing.\r\n\r\n**Provide version info**\r\n\r\nInformation about utPLSQL and Database version, \r\n```\r\nSQL\u003e declare\r\n  2    l_version varchar2(255);\r\n  3    l_compatibility varchar2(255);\r\n  4  begin\r\n  5    dbms_utility.db_version( l_version, l_compatibility );\r\n  6    dbms_output.put_line( l_version );\r\n  7    dbms_output.put_line( l_compatibility );\r\n  8  end;\r\n  9  /\r\n19.0.0.0.0\r\n19.0.0\r\n\r\n\r\nPL/SQL procedure successfully completed.\r\n\r\nSQL\u003e select substr(ut.version(),1,60) as ut_version from dual;\r\n\r\nUT_VERSION                                                  \r\n------------------------------------------------------------\r\nv3.1.8.3148-develop                                         \r\n\r\nSQL\u003e select * from v$version;\r\n\r\nBANNER\r\n--------------------------------------------------------------------------------\r\nBANNER_FULL\r\n------------------------------------------------------------------------------------------------------------------------------------\r\nBANNER_LEGACY                                                                        CON_ID\r\n-------------------------------------------------------------------------------- ----------\r\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production           \r\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production                                                              \r\nVersion 19.2.0.0.0                                                                                                                  \r\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production                    0\r\n\r\n\r\nSQL\u003e select * from nls_session_parameters;\r\n\r\nPARAMETER                      VALUE                                                           \r\n------------------------------ ----------------------------------------------------------------\r\nNLS_LANGUAGE                   AMERICAN                                                        \r\nNLS_TERRITORY                  SWITZERLAND                                                     \r\nNLS_CURRENCY                   SFr.                                                            \r\nNLS_ISO_CURRENCY               SWITZERLAND                                                     \r\nNLS_NUMERIC_CHARACTERS         .'                                                              \r\nNLS_CALENDAR                   GREGORIAN                                                       \r\nNLS_DATE_FORMAT                DD.MM.RR                                                        \r\nNLS_DATE_LANGUAGE              AMERICAN                                                        \r\nNLS_SORT                       BINARY                                                          \r\nNLS_TIME_FORMAT                HH24:MI:SSXFF                                                   \r\nNLS_TIMESTAMP_FORMAT           DD.MM.RR HH24:MI:SSXFF                                          \r\nNLS_TIME_TZ_FORMAT             HH24:MI:SSXFF TZR                                               \r\nNLS_TIMESTAMP_TZ_FORMAT        DD.MM.RR HH24:MI:SSXFF TZR                                      \r\nNLS_DUAL_CURRENCY              SF                                                              \r\nNLS_COMP                       BINARY                                                          \r\nNLS_LENGTH_SEMANTICS           BYTE                                                            \r\nNLS_NCHAR_CONV_EXCP            FALSE                                                           \r\n\r\n17 rows selected. \r\n\r\nSQL\u003e select substr(dbms_utility.port_string,1,60) as port_string from dual;\r\n\r\nPORT_STRING                                                 \r\n------------------------------------------------------------\r\nx86_64/Linux 2.4.xx  \r\n```\r\n\r\n**Information about client software**\r\n\r\nnot relevant.\r\n\r\n**To Reproduce**\r\n\r\n1. connect to a schema without test suites\r\n\r\n2. create the following package\r\n```sql\r\ncreate or replace package test_pkg is\r\n  -- %test\r\n  procedure t1;\r\n\r\n  -- %Test\r\n  procedure t2;\r\n\r\n  procedure t3;\r\nend test_pkg;\r\n/\r\n```\r\n\r\n3. run the following query:\r\n```sql\r\nwith \r\n   function has_suites return varchar2 is\r\n   begin\r\n      if ut_runner.has_suites(user) then\r\n         return 'true';\r\n      else \r\n         return 'false';\r\n      end if;\r\n   end;\r\n   function is_suite return varchar2 is\r\n   begin\r\n      if ut_runner.is_suite(user, 'test_pkg') then\r\n         return 'true';\r\n      else \r\n         return 'false';\r\n      end if;\r\n   end;\r\n   function is_test return varchar2 is\r\n   begin\r\n      if ut_runner.is_test(user, 'test_pkg', 't1') then\r\n         return 'true';\r\n      else \r\n         return 'false';\r\n      end if;\r\n   end;\r\nselect has_suites, is_suite, is_test from dual;\r\n```\r\n\r\n4. look at the result\r\n```\r\nHAS_SUITES IS_SUITE   IS_TEST   \r\n---------- ---------- ----------\r\ntrue       true       false     \r\n```\r\nthe values for `has_suites` and `is_suite` are wrong.\r\n\r\n5. run tests\r\n```sql\r\nselect * from table(ut.run('SCOTT'));\r\n```\r\n\r\n6. look at the result\r\n```\r\nResult Sequence                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                \r\n---------------\r\nFinished in .000021 seconds\r\n0 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)\r\n```\r\nYou see that no tests are executed, this is expected and it confirms, that the result for `has_suites` and `is_suite` are wrong.\r\n\r\n7. run alternative annotation cache query\r\n```sql\r\nselect *\r\nfrom table(ut_runner.get_suites_info(user, null))\r\nwhere item_type in ('UT_TEST', 'UT_SUITE');\r\n```\r\nthis query returns no rows, which is correct. An additional confirmation that the result for `has_suites` and `is_suite` are wrong.\r\n\r\n**Expected behavior**\r\n\r\n`has_suites` and `is_suite` should return false, if the annotation `suite` is not defined.\r\n","author":{"url":"https://github.com/PhilippSalvisberg","@type":"Person","name":"PhilippSalvisberg"},"datePublished":"2019-07-15T13:00:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/976/utPLSQL/issues/976"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fef98aa9-9393-13d9-7d8d-0ca66baf71cd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA1C:3A35C6:BA1B52:FA5722:696ABEE5
html-safe-noncea4bc88e32d1b9cc5810bcc362a637ab7c53e4bcb1919f5671f25d30514ad02d5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTFDOjNBMzVDNjpCQTFCNTI6RkE1NzIyOjY5NkFCRUU1IiwidmlzaXRvcl9pZCI6IjM0NjYzMTgxMTMyMjczMjUxNTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac25691bb8fd4c123808eafc6d8e344794fd4ec55a3d205c2f0e4bbba6c42c1d1a
hovercard-subject-tagissue:468114073
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/976/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a3e02bb926629e0339c569463ba4bc6536f31eea7b99fe5e8c04d1c21962c964/utPLSQL/utPLSQL/issues/976
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3e02bb926629e0339c569463ba4bc6536f31eea7b99fe5e8c04d1c21962c964/utPLSQL/utPLSQL/issues/976
og:image:altDescribe the bug The functions ut_runner.has_suites and ut_runner.is_suite return a true, even if the annotation suite is missing. Provide version info Information about utPLSQL and Database versio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePhilippSalvisberg
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
turbo-cache-controlno-preview
go-importgithub.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git
octolytics-dimension-user_id15661281
octolytics-dimension-user_loginutPLSQL
octolytics-dimension-repository_id50728220
octolytics-dimension-repository_nwoutPLSQL/utPLSQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id50728220
octolytics-dimension-repository_network_root_nwoutPLSQL/utPLSQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/utPLSQL/utPLSQL/issues/976#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F976
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F976
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=utPLSQL%2FutPLSQL
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/976
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/976
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/976
utPLSQL https://github.com/utPLSQL
utPLSQLhttps://github.com/utPLSQL/utPLSQL
Notifications https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Fork 187 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Star 599 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Code https://github.com/utPLSQL/utPLSQL
Issues 60 https://github.com/utPLSQL/utPLSQL/issues
Pull requests 2 https://github.com/utPLSQL/utPLSQL/pulls
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects 0 https://github.com/utPLSQL/utPLSQL/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/utPLSQL/utPLSQL/security
Please reload this pagehttps://github.com/utPLSQL/utPLSQL/issues/976
Insights https://github.com/utPLSQL/utPLSQL/pulse
Code https://github.com/utPLSQL/utPLSQL
Issues https://github.com/utPLSQL/utPLSQL/issues
Pull requests https://github.com/utPLSQL/utPLSQL/pulls
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects https://github.com/utPLSQL/utPLSQL/projects
Security https://github.com/utPLSQL/utPLSQL/security
Insights https://github.com/utPLSQL/utPLSQL/pulse
New issuehttps://github.com/login?return_to=https://github.com/utPLSQL/utPLSQL/issues/976
New issuehttps://github.com/login?return_to=https://github.com/utPLSQL/utPLSQL/issues/976
Wrong result for has_suite and is_suite when suite annotation is missinghttps://github.com/utPLSQL/utPLSQL/issues/976#top
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
v3.1.8https://github.com/utPLSQL/utPLSQL/milestone/16
https://github.com/PhilippSalvisberg
https://github.com/PhilippSalvisberg
PhilippSalvisberghttps://github.com/PhilippSalvisberg
on Jul 15, 2019https://github.com/utPLSQL/utPLSQL/issues/976#issue-468114073
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
v3.1.8https://github.com/utPLSQL/utPLSQL/milestone/16
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.